Forum Moderators: phranque
So I managed to create the .htaccess file. http://example.com/about is now 'rewritten' as 'http://example.com/index.php?location=about'. In the browser, it still has the short version as URL.
It works fine, until I add a / to the short url.
If I try http://example.com/about/, it will load the index.php correctly, and include the correct content files, but the browser looks in http://example.com/about/ for the .css and the images. How do I prevent that from happening?
Thanks!
[edited by: encyclo at 2:01 am (utc) on Nov. 9, 2007]
[edit reason] switched to example.com [/edit]
Best way is to always stick to referring to objects relative to the document root, for example the CSS would be:
<link rel="stylesheet" type="text/css" href="/path/to/cssfile.css">