I have an htaccess rewrite rule setup to reroute the URL to index.php and have pretty SEO friendly URLs.
It looks like this:
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteRule ^(.*)$ ./index.php [L]
This works great except that when for example I type http://www.site.com/one/two
which reroutes to index.php but the css and image files are missing.
How do I allow for a slash in the link?
When you add your css to the html add a
/in front of the path like so:That should fix your problem. You should do the same with javascript files.
That
/tells the browser that the path is relative to the root of the website.