Skip to content

Instantly share code, notes, and snippets.

@gotoplanb
Created October 4, 2012 04:05
Show Gist options
  • Save gotoplanb/3831401 to your computer and use it in GitHub Desktop.
Save gotoplanb/3831401 to your computer and use it in GitHub Desktop.
#DirectoryIndex index.php index.html
#Options +FollowSymLinks
#Options -Indexes
#ErrorDocument 403 default
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /news/
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) - [PT,L]
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteRule ^(.*) index.php
RewriteCond %{HTTP:Authorization} !^$
RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}]
</IfModule>
#php_value register_globals 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment