Redirecting Pages Which Are Already Indexed In Search Engines, URGENT!

6 replies
  • SEO
  • |
I posted this in another forum but got no response, and hence I'm re-posting it here. Please guys, this is urgent!


I have a wordpress based website which is indexed in the search engine like:

http://niche-blog.MainKeyword.com/Cat1/Page1.php

I recently changed the subdomain to only "niche", so the above link would look like:

http://niche.MainKeyword.com/Cat1/Page1.php

Now since the site is indexed in search engines using the "niche-blog" version, is there any way to redirect all that traffic to the new version. That is:

http://niche-blog.MainKeyword.com/Cat1/Page1.php should redirect to http://niche.MainKeyword.com/Cat1/Page1.php

Thanks in advance
Bhupinder
#301 redirect #engines #google indexing #indexed #pages #redirecting #search #urgent #url change
  • Profile picture of the author Brandon Tanner
    Originally Posted by howudoin View Post

    I posted this in another forum but got no response, and hence I'm re-posting it here. Please guys, this is urgent!


    I have a wordpress based website which is indexed in the search engine like:

    http://niche-blog.MainKeyword.com/Cat1/Page1.php

    I recently changed the subdomain to only "niche", so the above link would look like:

    http://niche.MainKeyword.com/Cat1/Page1.php

    Now since the site is indexed in search engines using the "niche-blog" version, is there any way to redirect all that traffic to the new version. That is:

    http://niche-blog.MainKeyword.com/Cat1/Page1.php should redirect to http://niche.MainKeyword.com/Cat1/Page1.php

    Thanks in advance
    Bhupinder
    A 301 redirect is the most SEO-friendly kind. Just put this in your .htaccess file...

    Redirect 301 http://niche-blog.MainKeyword.com/Cat1/Page1.php http://niche.MainKeyword.com/Cat1/Page1.php

    If you don't already have an .htaccess file, you'll need to create on and put it in your public_html folder.
    Signature

    {{ DiscussionBoard.errors[3039201].message }}
  • Profile picture of the author howudoin
    A 301 redirect is the most SEO-friendly kind. Just put this in your .htaccess file...

    Redirect 301 http://niche-blog.MainKeyword.com/Cat1/Page1.php http://niche.MainKeyword.com/Cat1/Page1.php

    If you don't already have an .htaccess file, you'll need to create on and put it in your public_html folder.
    Thanks for your Answer!

    Now you need to tell me how to do this? I mean the code to be used in .htaccess?

    Also, I'm using Hostgator and from within the cpanel I set the redirect of "http://niche-blog.MainKeyword.com" to "http://niche.MainKeyword.com". However, this does not works since now whenever I click on "http://niche-blog.MainKeyword.com/Cat1/Page1.php" it simply takes me to "http://niche.MainKeyword.com" rather than taking me to "http://niche.MainKeyword.com/Cat1/Page1.php"

    Would appreciate the code and any other related inputs.

    Bhupinder
    {{ DiscussionBoard.errors[3039337].message }}
  • Profile picture of the author howudoin
    On this site I have more than 200 pages, so does this mean I have to create the redirect for every single page. I'm pretty sure some standard code must exist as a shortcut.

    Bhupinder
    {{ DiscussionBoard.errors[3039470].message }}
  • Profile picture of the author Big__Lebowski
    if your hosting has cPanel you can do this here:

    and:


    if don't read this: .htaccess file tutorial and useful htaccess examples
    {{ DiscussionBoard.errors[3039511].message }}
  • Profile picture of the author howudoin
    Thanks for the screenshots but what you've suggested might not apply since "old domain" and "new domain" are the same only sub domains have changed.

    What I want is that http://niche-blog.Domain.com/Anypage.php (Currently indexed in Google) should redirect to http://niche.Domain.com/Anypage.php, only difference being in the "sub domain".

    Like I mentioned earlier, manually updating .htaccess 200 times would be too much of work. I'm pretty sure a shorter way of doing things does exists.

    Can anybody suggest a shorter way?

    Bhupinder
    {{ DiscussionBoard.errors[3039824].message }}
    • Profile picture of the author orvn
      Originally Posted by howudoin View Post

      Can anybody suggest a shorter way?
      You may use wildcards in your .htaccess file.
      Signature
      Orun Bhuiyan[@orvn] [linkedin] See what I've been doing lately by visiting my marketing agency's site. SEOcial specializes in content marketing and integrated optimization. We create conversions for businesses by gracefully connecting the realms of design, development and marketing.

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

Trending Topics