Skip to content

Instantly share code, notes, and snippets.

@agustinhaller
Created July 2, 2014 07:13
Show Gist options
  • Select an option

  • Save agustinhaller/1a398c0ceacea4e19a03 to your computer and use it in GitHub Desktop.

Select an option

Save agustinhaller/1a398c0ceacea4e19a03 to your computer and use it in GitHub Desktop.
DirectoryIndex site/index.html
FileETag none
ServerSignature Off
Options All -Indexes
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
########### WEBSITE URLs #########
#RewriteRule ^robots.txt$ robots.php$1 [L]
#RewriteRule ^rss$ rss.php$1 [L]
#RewriteRule ^sitemap.xml$ sitemap.php$1 [L]
RewriteRule ^admin$ admin/index.html$1 [L]
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment