mod_userdir and mod_rewrite conflict?

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
User avatar
maliskoleather
Forum Contributor
Posts: 155
Joined: Tue May 15, 2007 2:19 am
Contact:

mod_userdir and mod_rewrite conflict?

Post 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?
Post Reply