get two variables like:
xy.com/$1/$2/anytext.html
xy.com/$1/$2.html
xy.com/$1.html
All of these has to work so the header looks as above.
FILE:
- Code: Select all
Options +FollowSymlinks
RewriteEngine on
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
RewriteCond %{REQUEST_URI} !images/(.*)\.
RewriteCond %{REQUEST_URI} !style.css
RewriteCond %{REMOTE_ADDR} !192.168.1.3
RewriteRule ^([^/]+).html? /index.php?action=$1 [NC,R,L]
RewriteRule ^([^/]+)/([^/]+).html? /index.php?action=$1&id=$2 [NC,R,L]
RewriteRule ^([^/]+)/([^/]+)/(.*).html? /index.php?action=$1&id=$2 [NC,R,L]
PROBLEM:
now it works (the CSS also) but the header gets back to /index.php?action=$1&id=$2
If I only put [NC] after each line, than the header looks ok (xy.com/variable/variable/user.html) but it looks like there is NO STYLE SHEET so the web page shows up as is.
I use this site with a sudomain directed to this test website's directory.
I am not a professional as you'd guess but I need help. Thank you in advance!