Page 1 of 1

mod_userdir and mod_rewrite conflict?

Posted: Tue Apr 08, 2008 10:00 pm
by maliskoleather
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

Code: Select all

http://localhost/~foo.com/admin/user/login
to

Code: Select all

http://localhost/~foo.com/admin/index.php?page=user/login
ends up being redirected to

Code: Select all

http://localhost/C:/Websites/foo.com/trunk/public_html/admin/index.php?page=user/login
the .htaccess in the admin folder looks like this:

Code: Select all

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?page=$1 [R,L,QSA]
so, is there some issue with mod_userdir and mod_rewrite, or did I just really jack something up?