mod_rewrite and httpd passwd protected directory


/ Published in: Apache
Save to your folder(s)

Untested


Copy this code and paste it in your HTML
  1. Options +FollowSymLinks
  2.  
  3. RewriteEngine On
  4.  
  5. RewriteCond %{SCRIPT_FILENAME} !-f
  6. RewriteCond %{SCRIPT_FILENAME} !-d
  7. RewriteCond %{REQUEST_URI} !^/beheer(/.*)?$ [NC]
  8. RewriteRule .* rewrite?%{REQUEST_URI} [L]

URL: http://forum.modrewrite.com/viewtopic.php?t=3063&highlight=authtype+basic+rewriteengine

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.