1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

How to redirect .in domain to .com?

Discussion in 'HTML & Website Design' started by nikjem, Feb 22, 2012.

  1. #1
    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:
     
    nikjem, Feb 22, 2012 IP
  2. blacknet

    blacknet Active Member

    Messages:
    709
    Likes Received:
    16
    Best Answers:
    2
    Trophy Points:
    70
    #2
    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):
     
    blacknet, Feb 22, 2012 IP
  3. wiicker95

    wiicker95 Well-Known Member

    Messages:
    438
    Likes Received:
    37
    Best Answers:
    10
    Trophy Points:
    100
    #3
    Why don't you just set up the redirection from your domain registrar account???
     
    wiicker95, Feb 22, 2012 IP
  4. IDocXD

    IDocXD Member

    Messages:
    37
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #4
    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):
     
    IDocXD, Feb 23, 2012 IP