Problems with mod_rewrite and htaccess


#1

I’m using the cakephp framework which places a default htaccess file in my web root:



RewriteEngine on
RewriteRule ^$ app/webroot/ [L]
RewriteRule (.*) app/webroot/$1 [L]

I modified this to protect a URL with an htpasswd file:


<FilesMatch “administration$”>
AuthType Basic
AuthName "Admin"
AuthUserFile /home//.htpasswd
Require valid-user


RewriteEngine on
RewriteRule ^$ app/webroot/ [L]
RewriteRule (.*) app/webroot/$1 [L]

This works perfectly on my local development machine. But when I upload the changes to dreamhost I get the following error when I access http://domanname.com/administration/

“The requested address %s was not found on this server.”

Any idea why this is happening? I’ve been searching discussion forums and wikis for the last couple hours.