homepage Welcome to WebmasterWorld Guest from 54.197.189.108
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Google / Google SEO News and Discussion
Forum Library, Charter, Moderators: Robert Charlton & aakk9999 & brotherhood of lan & goodroi

Google SEO News and Discussion Forum

    
How to redirect bot from subdirectory to root directory
hp_solomon




msg:4213571
 3:24 am on Oct 8, 2010 (gmt 0)

i recently created a new site and moved my old site to its subdirectory -- www.site.com/version1 .

- how can i make google redirect from all www.site.com/version1 to the root directory www.site.com so all traffic will be redirected to the new site. ?

Thanks in advance.

 

tedster




msg:4213594
 4:27 am on Oct 8, 2010 (gmt 0)

I'm a bit confused - why did you give the old domain new urls if you want them redirected anyway? I assume the new version of your new site uses new URLs. Wouldn't it be better to redirect the old URLs to the new URLs and not even have the old site live at all?

hp_solomon




msg:4213600
 4:49 am on Oct 8, 2010 (gmt 0)

i moved it to archived the old site. now google is still crawling the old site. I also noticed google is crawling more the old site than the new site. Could it be possible to redirect google so all traffic will go to the new site? how?

thanks for the reply.

tedster




msg:4213615
 5:46 am on Oct 8, 2010 (gmt 0)

No one has linked to the archived site in its new location, right? If that's true, I'd just disallow that subdirectory in the robots.txt file. That's better than a redirect.

With a redirect, googlebot still keeps checking the URL and those checks use up part of your crawl budget. But if you disallow the subdirectory in robots.txt, then that pretty much ends googlebot requesting those URLs and frees crawl budget to ask for your new ones.

hp_solomon




msg:4213622
 6:24 am on Oct 8, 2010 (gmt 0)

is that the best approach to also increase craw and index rate of the new site?

so ill just put a robot.txt in the old directory?

is this right?

User-agent: *
Disallow: /

tedster




msg:4213633
 6:45 am on Oct 8, 2010 (gmt 0)

Not exactly. You put a robots.txt file in the ROOT directory:

User-agent: *
Disallow: /version1

hp_solomon




msg:4213636
 6:50 am on Oct 8, 2010 (gmt 0)

ok. thanks!

will do what you advice hopefully it'll increase web index in my site.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Google / Google SEO News and Discussion
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved