httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jack Mcslay <>
Subject [users@httpd] Rewriting urls with mod_rewrite works on the root page but not on userdir
Date Thu, 21 Mar 2013 09:42:07 GMT
I have the following .htaccess on /var/www:

RewriteEngine on

RewriteRule ^(.*)\.html$ site.php/$1 [L]

But the same .htaccess doesn't work when I put on an userdir, it keeps 
giving a 404 error even if the same site.php file that worked on the 
root site is there

Worth noting, the path given by the userdir site on the 404 error is the 
full path to the file, while if I remove the site.php to force a 404 on 
the root site it gives me the relative path only

Apache version is 2.2.22 (Ubuntu)

View raw message