help!
trying to redirect all .co.uk to .com!
regards
This is a discussion on htaccess redirect all .co.uk to .com? within the Off-Topic & Chit Chat forums, part of the Focus on Members category; help! trying to redirect all .co.uk to .com! regards...
help!
trying to redirect all .co.uk to .com!
regards
This is covered in non-www to www redirect
[How to] Setup www.yourdomain.com or yourdomain.com (www vs. non-www) - With .htaccess 301 redirects - vBulletin SEO Forums
Brian Cummiskey / Crawlability Inc.
Security vbulletin - Patch Level for all supported versions released!
Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!
doesnt really state for .co.uk to .com just either www or non www.. but anyway i tried and i get
Code:The page isn't redirecting properly Firefox has detected that the server is redirecting the request for this address in a way that will never complete. * This problem can sometimes be caused by disabling or refusing to accept cookies.
this isnt for a vbulletin forum, thats why i posted it in offtopic. its for a mate....
currently using
Code:RewriteCond %{HTTP_HOST} !^www\.kite-riders\.co.uk RewriteRule (.*) http://www.kite-riders.com/$1 [R=301,L]
The code you have reads...
if it is not www.kite-riders.co.uk redirect to カイトライダー.com サーフィン カイト ボーディング 相互 リンク マリン サイト which will continue to redirect because it will never be right..
you should use
which says if it is anything bug kite-riders.com (including kite-riders.co.uk) then redirect.Code:RewriteCond %{HTTP_HOST} !^www\.kite-riders\.com RewriteRule (.*) http://www.kite-riders.com/$1 [R=301,L]
Ceri
both of them work for the non-www but if its www and .co.uk it doesnt turn it into .com!!?
any suggestions welcomed
Regards
.if .co.uk is parked on .com,
"if its not domain.com, make it domain.com"
RewriteCond %{HTTP_HOST} !^domain\.com$
RewriteRule ^(.*)$ http://domain.com/$1 [R=301,L]
you can www to the rules if desired.
Brian Cummiskey / Crawlability Inc.
Security vbulletin - Patch Level for all supported versions released!
Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!
how would i www. it? just add ^(www.)?domain.co.uk$?
RewriteCond %{HTTP_HOST} !^www\.domain\.com$
RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L]
"if not www dot domain dot com, make it www dot domain dot com"
Brian Cummiskey / Crawlability Inc.
Security vbulletin - Patch Level for all supported versions released!
Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!
working so far. thanks Brian![]()