after .htaccess url rewrite, css lost, and cannot perform logoff in some of the url rewrited page
- by Patrick
Here is my working .htaccess
Options +FollowSymlinks
RewriteEngine on
#rep.php
RewriteRule ^all,all.html$ rep.php?repID=all&repName=all
RewriteRule ^([A-Z]+),([A-Za-z\sA-Za-z]+)\.html$ rep.php?repID=$1&repName=$2
#rep.php with page numbers
RewriteRule ^([A-Za-z]+),([A-Za-z\sA-Za-z]+),([0-9]+)\.html$ rep.php?repID=$1repName=$2&page=$3
#quotedetails.php
RewriteRule ^(Q[0-9]+)\.html$ quotedetails.php?quoteID=$1
RewriteRule ^index.html$ index.php
RewriteRule ^addquote.html$ addquote.php
RewriteRule ^search.html$ search.php
RewriteRule ^viewall.html$ viewall.php
RewriteRule ^howto.html$ howto.php
above code works, but if i change the rewrite url style to repID/repName/page.html, all the CSS will be lost, how to fix this issue?
another issue is, i have a login panel (modified from Cool login system), in some of the rewrited url like all, all.html or repID, repName.html or quoteID.html, when I click log out button, its not working and not redirect me to the index.html. in other pages(addquote.html, viewall.html, howto.html, search.html..), it works fine and redirect me to the index.htm after i click the logout button.