NYCPHP Meetup

NYPHP.org

[nycphp-talk] Mod_rewrite problem

Cliff Hirsch cliff at pinestream.com
Tue Feb 19 16:04:30 EST 2008


I use the following to help work with SEO-friendly URLs:

RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php [L,QSA]

This works fine on my development machine in the main .htaccess file.

On the production machine, I do the same thing, except it¹s in the main conf
file and there is no RewriteBase, since that is per dir context.

But on the prod. machine, the css and images do not appear. All files are
relative to root (/css/file, /images/file). Any ideas?

Cliff
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20080219/b4caef60/attachment.html>


More information about the talk mailing list