Rewriting urls with mod_rewrite works on the root page but not on userdir

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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)


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux