Re: Redirection with 301 for all subdomains with exception

From: Falco SCHMUTZ <fschmutz#lovaservices.net>
Date: Fri, 3 Jul 2009 15:22:44 +0200


Sorry,
Ok, i do it short, i need just 3 fix redirect in 301:

http://www.olddomain.com/es/  -> http://www.newdomain.com/es/marruecos.html
http://www.olddomain.com/en/  -> http://www.newdomain.com/en/morocco.html
http://www.olddomain.com/   -> http://www.newdomain.com/maroc.html

This is use for inform my user because the site change, and there is redirect to a special page by country.

But some request from google use old page and i need to move it in 301. So i just need to all others requests possibles are redirect too. www.olddomain.com/* -> www.newdomain.com/*

Maybe it s quite simple like this ?
Sorry to confuse you :-(
Thanks
Falco

2009/7/3 Willy Tarreau <w#1wt.eu>

> On Fri, Jul 03, 2009 at 03:04:56PM +0200, Falco SCHMUTZ wrote:
> > Thanks at all,
> > Are you sure i can use :
> >
> > this first configuration :
> > acl es path_beg /es
> > redirect location http://www.newdomain.com/es/marruecos.html if es
> > acl en path_beg /en
> > redirect location http://www.newdomain.com/en/morocco.html if en
> > acl www hdr(host) -i www.
> > redirect location http://www.newdomain.com/maroc.html if www
> >
> > then :
> > acl olddom hdr_end(host) -i olddomain.com
> > redirect prefix http://www.newdomain.com if olddom
> >
> > because i really need to redirect
> > http://www.olddomain.com/es/<
> http://www.newdomain.com/olddirectory/oldhtmlpage.*>
> > -> http://www.newdomain.com/es/marruecos.html
> > http://www.olddomain.com/en/<
> http://www.newdomain.com/es/olddirectory/oldhtmlpage.*>
> > -> http://www.newdomain.com/en/morocco.html
> > http://www.olddomain.com/<
> http://www.newdomain.com/en/olddirectory/oldhtmlpage.*>
> > -> http://www.newdomain.com/maroc.html
> >
> > then old directory and old html page to
> >
> > http://www.olddomain.com/directory/htmlpage.* ->
> > http://www.newdomain.com/directory/htmlpage.*
> > http://www.olddomain.com/es/directory/htmlpage.* ->
> > http://www.newdomain.com/es/olddirectory/htmlpage.*
> > http://www.olddomain.com/en/directory/htmlpage.* ->
> > http://www.newdomain.com/en/olddirectory/htmlpage.*<
> http://www.newdomain.com/olddirectory/oldhtmlpage.*>
>
> I'm sorry, but you confused me a lot, and now I'm not sure I
> understand what you need / want :-/
>
> > Last question, the option 301 does it work with those redirects ?
>
> Yes, just add "code 301" to the line.
>
> Regards,
> Willy
>
>
Received on 2009/07/03 15:22

This archive was generated by hypermail 2.2.0 : 2009/07/03 15:30 CEST