How to Redirect .in domain to .com?? I have 2 domain one is .in and another is .com... But Now I am planning to close .in domain.. but not good for seo without Redirect.. How I redirect whole site form old-domain.in to new-domain.com?? I already used .htaccess file to redirect but I think my .htaccess file is not working properly.. I had used this code.. Options +FollowSymLinks RewriteEngine on RewriteRule (.*) http://www.newdomain.com/$1 [R=301,L] HTML: This one too Redirect 301 / http://example.com/ HTML:
The first code looks okay, make sure mod_rewrite is on the server, and don't forget to set a rewrite base - if you have both domains pointed to the same host then you may want to change the .htaccess code to: RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} !newdomain.com$ [NC] RewriteRule ^(.*)$ http://www.newdomain.com/$1 [L,R=301] Code (markup):
Ive tried the .htaccess redirect even for redirecting domain.com to www(dot)domain(dot)com but always seems to have troubles aswell. The easiest way i find it to redirect a page is to make a meta redirect. its best to make sure the index file you use is empty or you will get a page flash at the begining. <html> <head> <meta http-equiv="refresh" content="0;url=http://www.69studios.net/"> </head> <body> </body> </html> Code (markup):