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


Reply via email to