Hello i am in the process of moving my websiteto a new domain name... but i don't want to be (1) - penalized for duplicate content .. and (2) - don't want to lose all the traffic and work i have done building the (soon-to-be) abandoned site so i would like all traffic forwarded over to the new one. I need a nice, seo friendly HTACCESS file written the right way (nothing shady) (for some reason, i struggle with these) For those that specialize in this field, this is a rather easy task... .. can someone please help ... i will pay if necessary. Please let me know as soon as possible. Thank You!! - jv
RewriteEngine On RewriteBase / RewriteCond %{REQUEST_URI} !^/ RewriteCond %{HTTP_HOST} ^[www\.]oldsite\.com/$1 RewriteRule ^(.*)$ http://www.newsite.net/$1 [R=301,L] redirect All people - and tells them 301 - or Permanent Move to the new location Hope it helps
hello hatta and thanks for the reply. .. and while i found what i was looking for, i was wondering if you could tell me the difference between your script and the one that i actually used (pro / con) "Redirect 301 / http://www.newsite.com/" thanks again
"hatta's" rules will check the incoming request and depending on the "RewriteCond" it will act upon it while your "Redirect" rule will simply forward all requests to the newsite.
I too require something like the above code, however is the above code will redirect an article abcd.co.in/article1 to abcd.in/article1 ? Please help me out, I'm not able to figure out the exact code. Thanks