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.

301 simple question please ...

Discussion in 'Search Engine Optimization' started by darrens, Jan 16, 2008.

  1. #1
    darrens, Jan 16, 2008 IP
  2. BluEnt

    BluEnt Peon

    Messages:
    21
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    hi darrens

    Create a .htaccess file with the below code,

    Options +FollowSymLinks
    RewriteEngine on
    RewriteRule (.*) http://www.newdomain.com/$1 [R=301,L]

    all your directories and pages of your old domain will get correctly redirected to your new domain through the above code.

    The .htaccess file needs to be placed in the root directory of your old website where your index file is placed

    Please replace www.newdomain.com in the above code with your actual domain name.

    In addition to the redirect I would suggest that you contact every backlinking site to modify their backlink to point to your new website.

    Note* This .htaccess method of redirection works ONLY on Linux servers having the Apache Mod-Rewrite moduled enabled.

    For Windows hosting, put the below give code into web.config so you can update it without having to recompile the site.

    <appSettings>

    <add key="primaryDomain" value="http://www.abc.com"/>

    </appSettings>

    Hope this will help
     
    BluEnt, Jan 17, 2008 IP