| 5:51 pm on Aug 21, 2002 (gmt 0)|
| 6:06 pm on Aug 21, 2002 (gmt 0)|
> 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)|
Forgive me for sounding dumb but how exactly do I redirect with 301. Is it through robots.txt or htacces.
| 6:25 pm on Aug 21, 2002 (gmt 0)|
| 6:49 pm on Aug 21, 2002 (gmt 0)|
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)|
OK the main change was a directory rename.
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)|
This should work:
RedirectMatch 301 /old/(.*) [mysite.com...]
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)|
Here is how I do 301 redirects in my .htaccess
redirectpermanent /old-dir/page.htm [yoursite.com...]
Hope it helps.