mod_rewrite browser trying to get content from non-existant dir

Posted by humgl on Stack Overflow See other posts from Stack Overflow or by humgl
Published on 2010-03-13T14:11:12Z Indexed on 2010/03/13 14:15 UTC
Read the original article Hit count: 219

Filed under:
|
|

I have my mod_rewrite set up so that it redirects all requests that aren't targeting existing files or directories to index.php?req=* where * is the request.

Works all fine but when I send the browser to something like this:

http://myurl/A/B/C

The browser tries to find all images, stylesheets in the non-existing folder C. How can I make the browser to look in / instead of the 'virtual' directory?

Do I have to put an absolute path everywhere?

© Stack Overflow or respective owner

Related posts about php

Related posts about mod-rewrite