Got htaccess rewriting my links for better seo like this:
Options +FollowSymLinks -MultiViews
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} .*/([^/]+)/? [NC]
RewriteCond %{REQUEST_URI} !index\.php [NC]
RewriteRule .* /index.php?cat=%1 [L,NC,QSA]
which rewrites
http://www.example.com/any/number/of/directories/lastDir
to:
http://www.example.com/index.php?cat=lastDir
but my css isnt working, when i upload htaccess to the server, there is just plain text without images and css
tried adding base tag into html, but its not working
<base href="http://www.example.com/">
.*/([^/.]+)/?instead. Your rule is probably matching the css and image file. Don't allowing dots in the rewrite would prevent this, since the file-extension contains a dot.