10-22-2006, 12:43 PM
Ok, so I've got the apache rewrite engine running on a site I am designing: all working fine, except for one problem: if I was to navigate to http://localhost/ (were the site is) the style sheet won't load but if I was to go to say the desktop page (/desktop/ ) it would. I just can't seem to find a fix.
Heres some of the code:
Then in the main index.php file:
Note: The site uses php includes (?act=$)
Thanks.
Heres some of the code:
Code:
RewriteEngine on
RewriteRule ^home/ index.php?act=index
RewriteRule ^links/ index.php?act=links
RewriteRule ^contact/ index.php?act=contact
RewriteRule ^projects/ index.php?act=projects
RewriteRule ^desktop/ index.php?act=desktopThen in the main index.php file:
Code:
<style type="text/css">@import url(../css/style.css);</style>Note: The site uses php includes (?act=$)
Thanks.
.