Skip to content

Instantly share code, notes, and snippets.

@meddulla
Created April 11, 2011 16:36
Show Gist options
  • Save meddulla/913822 to your computer and use it in GitHub Desktop.
Save meddulla/913822 to your computer and use it in GitHub Desktop.
fix http auth when php as cgi
#fix httpauth when php as cgi
RewriteCond %{HTTP:Authorization} ^Basic.*
RewriteCond $1 !^(index\.php|public|images|robots\.txt|css)
RewriteRule ^(.*)$ index.php/$1?Authorization=%{HTTP:Authorization} [L,QSA]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment