PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Diriger une société d'hébergement > alt.internet.seo > 301 redirect question
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
alt.internet.seo Internet search engines and related topics.

301 redirect question

Réponse
 
LinkBack Outils de la discussion
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
Vieux 18/08/2006, 22h00   #2
John Bokma
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: 301 redirect question

"Denise" <dionyza@hotmail.com> wrote:

> 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


Probably it first redirects to /something/ and then to
http://www.example.com/ :-D

Anyway (untested):


RedirectMatch permanent /something/.* http://www.example.com/


See: http://httpd.apache.org/docs/1.3/mod...#redirectmatch

--
John Experienced Perl programmer: http://castleamber.com/

Googlebot Stats: http://johnbokma.com/perl/googlebot-statistics.html
  Réponse avec citation
Vieux 18/08/2006, 22h14   #3
Denise
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: 301 redirect question

"John Bokma" <john@castleamber.com> wrote in message
news:Xns9823A2DEF98C3castleamber@130.133.1.4...
Denise wrote: >
>> 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

>
> Probably it first redirects to /something/ and then to
> http://www.example.com/ :-D


Yep! :-) That's what I meant, all right.

> Anyway (untested):
> RedirectMatch permanent /something/.* http://www.example.com/


Thanks so much. It works perfectly!

> See: http://httpd.apache.org/docs/1.3/mod...#redirectmatch


This is very interesting. I didn't know about (had never heard of)
RedirectMatch before. It's really going to come in handy; I can think of at
least one more situation where I can use it.

Thanks again, John! Somehow I just knew that it would be you that came to my
rescue.

cheers & gracias!
Denise

> John Experienced Perl programmer: http://castleamber.com/
>
> Googlebot Stats: http://johnbokma.com/perl/googlebot-statistics.html



  Réponse avec citation
Vieux 18/08/2006, 22h19   #4
Paul
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: 301 redirect question

On Fri, 18 Aug 2006 21:14:34 GMT, "Denise" <dionyza@hotmail.com>
wrote:

>Thanks again, John! Somehow I just knew that it would be you that came to my
>rescue.



John's good like that.

You could say he is the Perl in our oyster.
--
Advertise your American Indian Art http://www.firstpeople.us/FP-Html-Forums/rent.html or web site.

----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
  Réponse avec citation
Vieux 18/08/2006, 22h21   #5
Denise
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: 301 redirect question

"Paul" <lamewolf2004[REMOVE]@yahoo.com> wrote in message
news:hlbce2hki3id5qnrt1issvubim4dgubh7l@4ax.com...
> On Fri, 18 Aug 2006 21:14:34 GMT, Denise wrote:
>
>>Thanks again, John! Somehow I just knew that it would be you that came to
>>my
>>rescue.

>
>
> John's good like that.
>
> You could say he is the Perl in our oyster.


very clever, Paul!

Denise

> --
> Advertise your American Indian Art
> http://www.firstpeople.us/FP-Html-Forums/rent.html or web site.
>
> ----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet
> News==----
> http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+
> Newsgroups
> ----= East and West-Coast Server Farms - Total Privacy via Encryption
> =----



  Réponse avec citation
Vieux 18/08/2006, 22h35   #6
Big Bill
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: 301 redirect question

On Fri, 18 Aug 2006 21:21:42 GMT, "Denise" <dionyza@hotmail.com>
wrote:

>"Paul" <lamewolf2004[REMOVE]@yahoo.com> wrote in message
>news:hlbce2hki3id5qnrt1issvubim4dgubh7l@4ax.com.. .
>> On Fri, 18 Aug 2006 21:14:34 GMT, Denise wrote:
>>
>>>Thanks again, John! Somehow I just knew that it would be you that came to
>>>my
>>>rescue.

>>
>>
>> John's good like that.
>>
>> You could say he is the Perl in our oyster.

>
>very clever, Paul!
>
>Denise
>


He's the Paul in our oyster.

BB
--

http://www.kruse.co.uk/affordable-we...n-services.htm
http://www.kruse.co.uk/google-mountain.htm
http://www.kruse.co.uk/seo-home-page.htm
  Réponse avec citation
Vieux 18/08/2006, 22h37   #7
Paul
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: 301 redirect question

On Fri, 18 Aug 2006 21:21:42 GMT, "Denise" <dionyza@hotmail.com>
wrote:

>"Paul" <lamewolf2004[REMOVE]@yahoo.com> wrote in message
>news:hlbce2hki3id5qnrt1issvubim4dgubh7l@4ax.com.. .
>> On Fri, 18 Aug 2006 21:14:34 GMT, Denise wrote:
>>
>>>Thanks again, John! Somehow I just knew that it would be you that came to
>>>my
>>>rescue.

>>
>>
>> John's good like that.
>>
>> You could say he is the Perl in our oyster.

>
>very clever, Paul!
>
>Denise


I do try

--
Advertise your American Indian Art http://www.firstpeople.us/FP-Html-Forums/rent.html or web site.

----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
  Réponse avec citation
Vieux 18/08/2006, 22h39   #8
Paul
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: 301 redirect question

On Fri, 18 Aug 2006 21:35:13 GMT, Big Bill <kruse@cityscape.co.uk>
wrote:

>He's the Paul in our oyster.
>
>BB
>--


<g>

It's friday night Bill. I become Pauline till morning .
--
Advertise your American Indian Art http://www.firstpeople.us/FP-Html-Forums/rent.html or web site.

----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 19h37.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,14872 seconds with 16 queries