Code: Select all
# Redirection
Redirect permanent /index.html http:/cms/index.php
#php_flag magic_quotes_gpc Off
#php_flag register_globals Off
#php_flag session.use_trans_sid Off
# Make sure you have Options FollowSymLinks
# and Allow on
RewriteEngine On
RewriteBase /cms/
#Rewrites page.shtml as index.php?page
RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteCond %{REQUEST_FILENAME} !-d [NC]
RewriteRule ^(.+)$ index.php?page=$1 [QSA]
This works without any problems. And I can access other directories. But when I password protect a directory I cannot access it anymore (error 404, requested URL was not found on this server).
Any idea what goes wrong?
Edi