Simple 301 redirect question

by pts123
3 replies
I have a certain site that is getting good search engine results under certain keywords, that I want to redirect only certain pages of that site to another domain. All the different pages are to be redirected to one specific internal url, not the index of the new domain. So the URLs are not going to have the same paths.

I am familiar with 301 redirects if the paths are the same in both domains, but I am not clear on how I can do this the way I described. BTW , These are strictly static html sites.

any help would be greatly appreciated

thanks
#301 #question #redirect #simple
  • Profile picture of the author lisag
    Redirect 301 /oldpagename1 http://newsite.com/newpagename1
    Redirect 301 /oldpagename2 http://newsite.com/newpagename2
    Redirect 301 /oldpagename3 http://newsite.com/newpagename3
    Redirect 301 /oldpagename99 http://newsite.com/newpagename99
    Signature

    -- Lisa G

    {{ DiscussionBoard.errors[1650827].message }}
    • Profile picture of the author pts123
      Originally Posted by lisag View Post

      Redirect 301 /oldpagename1 http://newsite.com/newpagename1
      Redirect 301 /oldpagename2 http://newsite.com/newpagename2
      Redirect 301 /oldpagename3 http://newsite.com/newpagename3
      Redirect 301 /oldpagename99 http://newsite.com/newpagename99

      thanks, however I already tried that and it didn't work , even after refreshing the pages.... the pages in question are not in separate category folders either, I also made sure that the.htaccess was saved as "all files*" and made sure that it was uploaded in the same directory as the html pages in question

      anyway , I'll keep trying

      thanks anyway

      P
      {{ DiscussionBoard.errors[1653592].message }}
      • Profile picture of the author lisag
        Originally Posted by pts123 View Post

        thanks, however I already tried that and it didn't work , even after refreshing the pages.... the pages in question are not in separate category folders either, I also made sure that the.htaccess was saved as "all files*" and made sure that it was uploaded in the same directory as the html pages in question

        anyway , I'll keep trying

        thanks anyway

        P
        The .htaccess file has to be in your root directory. It doesn't matter which folders each of the files you want to redirect are located. Just make sure you represent their location correctly in the .htaccess.
        Signature

        -- Lisa G

        {{ DiscussionBoard.errors[1653677].message }}

Trending Topics