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> &lt;<a href="mailto:mike@etuna.co.uk">mike@etuna.co.uk</a>&gt; 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, &quot;Phil Burrows&quot; &lt;<a href="mailto:phil@tektlab.co.uk" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">phil@tektlab.co.uk</a>&gt; 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> &lt;<a href="mailto:mike@etuna.co.uk" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">mike@etuna.co.uk</a>&gt; 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>
&nbsp;redirect all english and french pages to one external site, all german pages<br>
&nbsp;to another external site but still allow people to access the admin pages<br>
&nbsp;and a specific campaign section called ebook.<br>
&nbsp;<br>
&nbsp;The site is structured like:<br>
&nbsp;<br>
&nbsp;/en/...<br>
&nbsp;/fr/...<br>
&nbsp;/de/...<br>
&nbsp;/admin/...<br>
&nbsp;/ebook/...<br>
&nbsp;/other/..<br>
&nbsp;/etc/<br>
&nbsp;/etc2/<br>
&nbsp;<br>
&nbsp;I presume this is possible with Mod rewrite but everything I try gets the<br>
&nbsp;whole site to redirect rather than leaving the admin and ebook links<br>
&nbsp;working.<br>
&nbsp;<br>
&nbsp;Any help appreciated.<br>
&nbsp;<br>
&nbsp;Cheers<br>
&nbsp;<br>
&nbsp;Mike<br>
&nbsp;<br>
&nbsp;<br>
&nbsp;<br>
&nbsp;_______________________________________________<br>
&nbsp;Phpwm mailing list<br>
&nbsp;<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>
&nbsp;<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>
&nbsp;<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