Welcome to WebmasterWorld Guest from 54.205.251.179

Forum Moderators: open

Message Too Old, No Replies

Miss-timed a change

My big errer

   
5:39 pm on Aug 21, 2002 (gmt 0)

WebmasterWorld Administrator mack is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



I was watching for Googlebot just after the last crawl to ensure it indexed a change of a directory name on my site. It indexed all the new filenames so I deleted all the old stuff from my server just as the update started. I am now seeing that Google is not showing the url's for my new content. Just the links to the old stuff that I removed. Thankfully I have all the old stuff backed up and it is now on the server in it's old positioning and all Google links point to the right content.. What should I do now. I want goggle only to index the new file structure an ignore the previous pages. should I just ban Googlebot from the old directories an make sure all links remain pointing to the new directories???

[edited by: mack at 6:15 pm (utc) on Aug. 21, 2002]

5:51 pm on Aug 21, 2002 (gmt 0)



I did the exact same thing...minus the deleting part. I renamed my pages, and on the old ones I disallowed crawlers, and did a javascript redirect to the new ones. I noticed it to, how mid month google had my new pages, but now they're back to the old. Guess there's next month! :)
6:06 pm on Aug 21, 2002 (gmt 0)

WebmasterWorld Senior Member pageoneresults is a WebmasterWorld Top Contributor of All Time 10+ Year Member



> What should I do now. I want goggle only to index the new file structure an ignore the previous pages. should I just ban Googlebot from the old directories an make sure all link remain pointing to the new directories???

301 redirects quickly! Make sure you redirect old file name to new file name.

6:14 pm on Aug 21, 2002 (gmt 0)

WebmasterWorld Administrator mack is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



Forgive me for sounding dumb but how exactly do I redirect with 301. Is it through robots.txt or htacces.

As for the javascript redirect. That would mean altering each page. there are 2400 of them :)

6:25 pm on Aug 21, 2002 (gmt 0)



You probably don't want to go with javascript...:) 2400 pages later google would be doing their NEXT update!
6:49 pm on Aug 21, 2002 (gmt 0)

WebmasterWorld Senior Member pageoneresults is a WebmasterWorld Top Contributor of All Time 10+ Year Member



mack, through htaccess, unless you are on a Windows box, then you do it through IIS and host headers.
4:27 am on Aug 22, 2002 (gmt 0)

WebmasterWorld Administrator mack is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



OK the main change was a directory rename.

mysite.com/old/content/.....
becomes
mysite.com/new/contect/.....

can I still use htaccess at root directoryto redirect from old to new... for example if a user requests /old/page1 will it be possible to redirect them to /new/page1.

Is it possible to send a user to the same page but in a different directory. I have never worked with htaccess before.

5:06 am on Aug 22, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This should work:

RedirectMatch 301 /old/(.*) [mysite.com...]

See:
[httpd.apache.org...]

If you don't put the 301 in there, apache will default to a 302 status code.

8:55 am on Aug 22, 2002 (gmt 0)

10+ Year Member



Here is how I do 301 redirects in my .htaccess

redirectpermanent /old-dir/page.htm [yoursite.com...]

Hope it helps.