ok I have this rewrite rule:
rewritecond %{http_host} ^kranichs.com [nc]
rewriterule ^(.*)$ http://www.kranichs.com/$1 [r=301,nc]
which inforces always having http://www always prefiex my domain...it always has worked and still does.
I now added this:
RewriteRule ^.*_(\d+)c\.htm(&.*)? /K_category.php?cid=$1$2
which makes something like this:
http://www.kranichs.com/Simon_G_53c.htm
give you this page:
http://www.kranichs.com/K_category.php?cid=53
which works but if you dont type in the www. part and try to access it like this: http://kranichs.com/Simon_G_53c.htm it still takes you to the right page but it the URL actually changes to http://www.kranichs.com/K_category.php?cid=53 which I dont want the user to see this I want the user to always see the prettier URL.
I know this is caused because of the other rule that enforces the www. but I dont know how to fix this?
I hope this makes sense.
Can anyone help?
THANKS!