When i was trying to rewrite url using .htaccess i got my page css disturbed. i don’t know why that happened. Anyone please help..
RewriteBase /
RewriteEngine On
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^([^\.]+)$ $1.php [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/(.*)$ index.php?$1=$2 [L,QSA]
here is the example
Without rewriting url
Your CSS source is relative to the current document.
Make sure, its an absolute URL.. since
in case of rewrite, its requesting, field/stylesheets/style.css instead of stylesheets/style.css
your css source should be :