Try putting different .htaccess in each directory.<br><br><div><span class="gmail_quote">On 01/04/2008, <b class="gmail_sendername">Mike Tipping</b> <<a href="mailto:mike@etuna.co.uk">mike@etuna.co.uk</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
<font face="Verdana, Helvetica, Arial"><span style="font-size: 12px;">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.<div><span class="e" id="q_11909a15dd902e89_1"><br>
<br>
<br>
On 1/4/08 11:48, "Phil Burrows" <<a href="mailto:phil@tektlab.co.uk" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">phil@tektlab.co.uk</a>> wrote:<br>
<br>
</span></div></span></font><div><span class="e" id="q_11909a15dd902e89_3"><blockquote><font face="Verdana, Helvetica, Arial"><span style="font-size: 12px;">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> <<a href="mailto:mike@etuna.co.uk" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">mike@etuna.co.uk</a>> wrote:<br>
</span></font><blockquote><font face="Verdana, Helvetica, Arial"><span style="font-size: 12px;">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>
<a href="mailto:Phpwm@mailman.lug.org.uk" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Phpwm@mailman.lug.org.uk</a><br>
<a href="https://mailman.lug.org.uk/mailman/listinfo/phpwm" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">https://mailman.lug.org.uk/mailman/listinfo/phpwm</a><br>
<br>
</span></font></blockquote><font face="Verdana, Helvetica, Arial"><span style="font-size: 12px;"><br>
<br>
</span></font></blockquote><font face="Verdana, Helvetica, Arial"><span style="font-size: 12px;"><br>
</span></font>
</span></div></div>
<br>_______________________________________________<br>
Phpwm mailing list<br>
<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Phpwm@mailman.lug.org.uk">Phpwm@mailman.lug.org.uk</a><br>
<a onclick="return top.js.OpenExtLink(window,event,this)" href="https://mailman.lug.org.uk/mailman/listinfo/phpwm" target="_blank">https://mailman.lug.org.uk/mailman/listinfo/phpwm</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Phil Burrows<br><br>Call for a strong Climate Change Bill at <a href="http://www.foe.co.uk/campaigns/climate/press_for_change/email_mp/index.html">www.foe.co.uk/campaigns/climate/press_for_change/email_mp/index.html</a><br>
<br>Address: <br>47 Brooklands Drive<br>Kings Heath<br>Birmingham<br>B14 6EJ<br><br>Telephone:<br> 0121 243 6008<br> 07883 022304