Earlier I made a question about creating seo friendly urls. And I got the answer.
Now I have a new problem. When I’m using mod_rewrite in .htaccess file:
RewriteEngine on
RewriteRule ^page/([^/\.]+)/?$ index.php?page=$1 [L]
to create link like: http://www.myurl.com/page/11
It’s working fine. But when im entering the new page with the new lovely URL, I’m not getting any CSS.
I think my .htaccess doesn’t allow it. How do I allow this?
If you want to have cool URLs, you need to link your CSS/JS and image files from HTML with leading slash (
/).