Discussion: 301 redirect question
Afficher un message
Vieux 18/08/2006, 21h21   #1
Denise
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 301 redirect question

Can't quite figure this out, so thought I'd ask one of the 301 gurus here ~

What is the proper way to redirect all the pages in a particular
subdirectory to the homepage using a 301 without doing a 301 for each page
separately?

For instance, every page in
http://www.example.com/something/ would redirect to http://www.example.com
(where one would find a note that the /something/ part of the site
unfortunately no longer exists).

I tried this:

RedirectPermanent /something/ http://www.example.com/

and it works perfectly when someone types in
http://www.example.com/something - it redirects to http://www.example.com

But when someone goes to
http://www.example.com/something/particularpage.html it redirects to
www.example.com/particularpage.html when I want it just to redirect to
http://www.example.com

I know I can do a separate 301 for each page in the /something/ directory -
but that would take a lot of time & space, so I'm hoping there's a more
elegant solution.

Sure there's something elementary I'm missing - hoping someone can set me
straight.

Thanks!
Denise



  Réponse avec citation
 
Page generated in 0,05378 seconds with 9 queries