ha ha of course, thank you so much for bearing with me!!!! and for all of your help!!!!
All is working perfectly now! :clap:
do you have a page where i can buy you a coffee to say thanks?
Printable View
ha ha of course, thank you so much for bearing with me!!!! and for all of your help!!!!
All is working perfectly now! :clap:
do you have a page where i can buy you a coffee to say thanks?
Excellent! If you want can buy the Zen Cart team a coffee
http://www.zen-cart.com/index.php?ma...es&pages_id=14
~Melanie
done and thanks again!
Tidied up:Quote:
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^www\.livvylou\.co.uk
RewriteRule (.*) http://www.livvylou.co.uk/$1 [R=301,L]
Escape all literal periods, \.uk for example.Code:RewriteEngine On
RewriteCond %{HTTP_HOST} !^(www\.livvylou\.co\.uk)?$
RewriteRule (.*) http://www.livvylou.co.uk/$1 [R=301,L]
The additional ( ) ? is required to stop HTTP/1.0 requests with blank hostname in the request resulting in an infinite redirect loop.
The original code would not redirect a www request with appended port number, leading to Duplicate Content issues. Adding the $ fixes that.
RewriteBase / is the default and is not required to be restated.