mod_userdir and mod_rewrite conflict?
Posted: Tue Apr 08, 2008 10:00 pm
I'm working on a project right now that uses mod_rewrite to make pretty url's for an MVC system. This works great on the CentOS test server, as well as our development boxes (various versions of windows).
However, on one box that uses mod_userdir, anytime that it rewrites the url, it seems to be coming out goofy. What should be converted from
to
ends up being redirected to
the .htaccess in the admin folder looks like this:
so, is there some issue with mod_userdir and mod_rewrite, or did I just really jack something up?
However, on one box that uses mod_userdir, anytime that it rewrites the url, it seems to be coming out goofy. What should be converted from
Code: Select all
http://localhost/~foo.com/admin/user/loginCode: Select all
http://localhost/~foo.com/admin/index.php?page=user/loginCode: Select all
http://localhost/C:/Websites/foo.com/trunk/public_html/admin/index.php?page=user/loginCode: Select all
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?page=$1 [R,L,QSA]