Forwarding Just The Main Page

Discussion in 'Search Engine Optimization' started by NameWolf, May 18, 2007.

  1. #1
    Hey Guys,

    I would like to forward the main page of my old site http://www.myolddomain.com to http://www.mynewdomain.com but I want the inner pages of myolddomain.com such as http://www.myolddomain.com/directory/content.html to remain as it is. What is the best way to do this taking SEO into effect ?

    I already have the following code in my .htaccess file but that forwards all the pages. Also note that my site is already using mod rewrite therefore a simple 301 redirect of the index.php page is effecting other pages as well.

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


    Thanks in advance.
     
    If someone posts a solution, use the "Best Answer" link in their post to pick it as the best answer.
    NameWolf, May 18, 2007 IP
  2. hostingp

    hostingp Peon

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Someone correct me if I'm wrong, but couldn't you just do this?

    redirect 301 /index.htm http://www.mynewdomain.com

    And then leave everything else as is. I'd plop that into a blank .htaccess file in your old domain and give it a try and see if it works.

    Is there a reason you want only your index page to redirect and not your subdirectories?

    Jen
     
    hostingp, May 18, 2007 Set Best Answer IP
  3. NameWolf

    NameWolf Guest

    Best Answers:
    0
    #3
    The site already uses mod re-write so that pages are search engine friendly therefore a single redirect of index.php file effects all the other pages. That is what I am trying to get around.

    Best Regards,
     
    NameWolf, May 18, 2007 Set Best Answer IP
  4. NameWolf

    NameWolf Guest

    Best Answers:
    0
    #4
    Any ideas ?
     
    NameWolf, May 23, 2007 Set Best Answer IP