Go Back   WarriorForum - Internet Marketing Forums > The Warrior Forum > Adsense / PPC / SEO Discussion Forum
Register Blogs FAQ Social Groups CalendarHelp Desk

Reply
 
LinkBack Thread Tools
Old 12-18-2010, 09:31 PM   #1
BACKLINK MOGUL
War Room Member
 
howudoin's Avatar
 
Join Date: Jun 2008
Location: Warrior Forum
Posts: 757
Thanks: 37
Thanked 47 Times in 28 Posts
Social Networking View Member's Twitter Profile 
Contact Info
Send a message via Skype™ to howudoin
Default Redirecting Pages Which Are Already Indexed In Search Engines, URGENT!

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

howudoin is offline   Reply With Quote
Old 12-18-2010, 09:52 PM   #2
Advanced Warrior
War Room Member
 
Brandon Tanner's Avatar
 
Join Date: Jul 2006
Location: USA
Posts: 1,753
Thanks: 107
Thanked 524 Times in 175 Posts
Default Re: Redirecting Pages Which Are Already Indexed In Search Engines, URGENT!

Quote:
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.

Brandon Tanner is offline   Reply With Quote
Old 12-18-2010, 10:53 PM   #3
BACKLINK MOGUL
War Room Member
 
howudoin's Avatar
 
Join Date: Jun 2008
Location: Warrior Forum
Posts: 757
Thanks: 37
Thanked 47 Times in 28 Posts
Social Networking View Member's Twitter Profile 
Contact Info
Send a message via Skype™ to howudoin
Default Re: Redirecting Pages Which Are Already Indexed In Search Engines, URGENT!

Quote:
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

howudoin is offline   Reply With Quote
Old 12-18-2010, 11:57 PM   #4
BACKLINK MOGUL
War Room Member
 
howudoin's Avatar
 
Join Date: Jun 2008
Location: Warrior Forum
Posts: 757
Thanks: 37
Thanked 47 Times in 28 Posts
Social Networking View Member's Twitter Profile 
Contact Info
Send a message via Skype™ to howudoin
Default Re: Redirecting Pages Which Are Already Indexed In Search Engines, URGENT!

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

howudoin is offline   Reply With Quote
Old 12-19-2010, 12:10 AM   #5
HyperActive Warrior
War Room Member
 
Big__Lebowski's Avatar
 
Join Date: Dec 2010
Location: Poland, Kraków
Posts: 246
Thanks: 11
Thanked 19 Times in 12 Posts
Default Re: Redirecting Pages Which Are Already Indexed In Search Engines, URGENT!

if your hosting has cPanel you can do this here:

and:


if don't read this: .htaccess file tutorial and useful htaccess examples

Big__Lebowski is offline   Reply With Quote
Old 12-19-2010, 02:41 AM   #6
BACKLINK MOGUL
War Room Member
 
howudoin's Avatar
 
Join Date: Jun 2008
Location: Warrior Forum
Posts: 757
Thanks: 37
Thanked 47 Times in 28 Posts
Social Networking View Member's Twitter Profile 
Contact Info
Send a message via Skype™ to howudoin
Arrow Re: Redirecting Pages Which Are Already Indexed In Search Engines, URGENT!

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

howudoin is offline   Reply With Quote
Old 12-19-2010, 10:02 AM   #7
Advanced Warrior
War Room Member
 
orvn's Avatar
 
Join Date: Oct 2010
Location: Toronto, Canada
Posts: 756
Thanks: 86
Thanked 178 Times in 102 Posts
Social Networking View Member's FaceBook Profile  View Member's Twitter Profile 
Contact Info
Send a message via Skype™ to orvn
Default Re: Redirecting Pages Which Are Already Indexed In Search Engines, URGENT!

Quote:
Originally Posted by howudoin View Post
Can anybody suggest a shorter way?
You may use wildcards in your .htaccess file.

✄- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Orun Kabir Programming, security, design, writing, semantic web.
SEO Jedi.

[@orvn] [linkedin] [klout]
orvn is offline   Reply With Quote
Reply

  WarriorForum - Internet Marketing Forums > The Warrior Forum > Adsense / PPC / SEO Discussion Forum

Tags
301 redirect, engines, google indexing, indexed, pages, redirecting, search, urgent, url change

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -6. The time now is 11:46 PM.