<HTML>
<HEAD>
<TITLE>Re: [Phpwm] Mod rewrite question</TITLE>
</HEAD>
<BODY>
<FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'>If I put a redirect .httaccess in the root and not in the ebooks directory the ebook directory still redirects.<BR>
<BR>
The stuff that I’ve read suggests I can add a .httaccess to the root with something like<BR>
<BR>
!(admin|ebook) <BR>
<BR>
i.e. do this for everything that isn’t the admin and the ebooks directory but I can’t get this to work or find any examples to copy.<BR>
<BR>
<BR>
On 1/4/08 11:48, "Phil Burrows" <phil@tektlab.co.uk> wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'>You need to put .htaccess files in each directory that you want to redirect. The mod rewrite should point to a new php file on your system that will redirect them to an external page.<BR>
<BR>
On 01/04/2008, <B>Mike Tipping</B> <mike@etuna.co.uk> wrote:<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'>I have a client who because most of their site is out of date wants to<BR>
redirect all english and french pages to one external site, all german pages<BR>
to another external site but still allow people to access the admin pages<BR>
and a specific campaign section called ebook.<BR>
<BR>
The site is structured like:<BR>
<BR>
/en/...<BR>
/fr/...<BR>
/de/...<BR>
/admin/...<BR>
/ebook/...<BR>
/other/..<BR>
/etc/<BR>
/etc2/<BR>
<BR>
I presume this is possible with Mod rewrite but everything I try gets the<BR>
whole site to redirect rather than leaving the admin and ebook links<BR>
working.<BR>
<BR>
Any help appreciated.<BR>
<BR>
Cheers<BR>
<BR>
Mike<BR>
<BR>
<BR>
<BR>
_______________________________________________<BR>
Phpwm mailing list<BR>
Phpwm@mailman.lug.org.uk<BR>
https://mailman.lug.org.uk/mailman/listinfo/phpwm<BR>
<BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'><BR>
<BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'><BR>
</SPAN></FONT>
</BODY>
</HTML>