|
|
|
|
||||||
| alt.internet.seo Internet search engines and related topics. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
"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 |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
"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 |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
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 =---- |
|
|
|
#5 |
|
Messages: n/a
Hébergeur: |
"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 > =---- |
|
|
|
#6 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#7 |
|
Messages: n/a
Hébergeur: |
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 =---- |
|
|
|
#8 |
|
Messages: n/a
Hébergeur: |
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 =---- |
|
![]() |
| Outils de la discussion | |
|
|