Click to See Complete Forum and Search --> : Site wide Redirects


aprice42
01-30-2007, 10:36 AM
Hello,

I am trying to redirect visitors from my old site to my new. Is there an easy way to redirect the entire site to go to my new home page?

So to redirect from every page within the site:
www.site_a.com, www.site_a.com/events, www.site_a.com/events/championship.html, etc...

And have all pages redirect to the new home page: www.site_b.com.

would this be possible with htaccess? Or something else.
Any insight here would be appreciated.

Thanks,
Andy

KDLA
01-30-2007, 02:24 PM
Yes, you're right.
redirect 301 /index.html http://www.example.com/index.html

aprice42
01-30-2007, 05:34 PM
Thanks for the quick response : )
will putting /index.html work to redirect all other pages of the site. or does that just represent the home page index? Also what does 301 mean?

KDLA
01-30-2007, 08:38 PM
This might help you:
http://seoblog.intrapromote.com/2005/09/implementing_a.html

aprice42
01-31-2007, 05:31 PM
Thanks, that was informative, but my question is still not fully answered....

How can I redirect an entire directory: all of the pages within say http://www.website.com/events/

which includes:
http://www.website.com/events/index.html
http://www.website.com/events/training.html
http://www.website.com/events/classes.html
http://www.website.com/events/teachers.html
etc...

the method shown above will only redirect the index.html page of that directory

any thoughts??