hi people,

i cant get mod_rewrite working on .htaccess in one of the sub folders
here is the test content of .htaccess

Options +FollowSymLinks

RewriteEngine On
RewriteRule (.*) http://www.google.com/

im sure mod_rewrite is loaded as it's shown on phpinfo under loaded modules.

the following are some settings on httpd.conf for browser authentication in other sub folders for the same domain (im not sure if this affects):

<VirtualHost xxx.xx.xx.xxx:80>
DocumentRoot /var/www/html/website
ServerName www.website
<Directory "/var/www/html/website/internal">
AllowOverride AuthConfig
Options FollowSymLinks
Order allow,deny
Allow from all
Options +ExecCGI +Indexes
AddHandler cgi-script .cgi
AuthUserFile /var/www/html/website/report/.htpasswd
AuthName "Authorization Required"
AuthType Basic
Require valid-user
</Directory>
</VirtualHost>

any help would be appreciated.

    I think you'll need to change the AllowOverride directive. Not sure what you would need to add to it. Pretty sure AllowOverride All would do it but there's probably a more limited option. Try reading the docs?

      Write a Reply...