Skip to content

Commit

Permalink
Apache htaccess file and robots.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathancross committed Jul 22, 2015
1 parent 22c7a65 commit e4fce99
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
AddDefaultCharset utf-8
DefaultLanguage en-US
AddType application/xhtml+xml .xhtml
# AddType text/xml .xhtml

DirectoryIndex index.xhtml index.html index.cgi

# Secure htaccess file
<Files .htaccess>
order allow,deny
deny from all
</Files>

# Protect against DOS attacks by limiting file upload size
LimitRequestBody 10240000

# Minimize image flicker in IE6
ExpiresActive On
ExpiresByType image/gif A2592000
ExpiresByType image/jpg A2592000
ExpiresByType image/png A2592000

# Custom error pages
ErrorDocument 404 /error.html
ErrorDocument 500 /error.html

# Clean urls for folders.
RewriteEngine on
RewriteRule ^([^?]*/)$ /jcdsee.cgi?cur_url=/$1

# Provide a universal error document
# RewriteCond %{REQUEST_FILENAME} !-f
# RewriteCond %{REQUEST_FILENAME} !-d
# RewriteRule ^(.*)$ /error.html?$1 [L]





2 changes: 2 additions & 0 deletions robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
User-agent: *
Disallow:

0 comments on commit e4fce99

Please sign in to comment.