I have always found putting a .htaccess in each directory good for security, stopping nosey peops from snooping.<br><br><div><span class="gmail_quote">On 01/04/2008, <b class="gmail_sendername">Daniel Davies</b> &lt;<a href="mailto:daniel@sitedesign.net">daniel@sitedesign.net</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;">
Mike,<br> <br> Yep its possible using mod rewrite sending a 301 redirect.<br> <br> I pulled this out of my own .htaccess if it helps. It redirects all<br> traffic missing the www. bit of my address to the correct, full domain.<br>
 <br> &lt;IfModule mod_rewrite.c&gt;<br>&nbsp;&nbsp;RewriteEngine On<br>&nbsp;&nbsp;RewriteCond %{HTTP_HOST} ^danux\.co\.uk$ [NC]<br>&nbsp;&nbsp;RewriteRule ^(.*)$ <a href="http://www.danux.co.uk/$1">http://www.danux.co.uk/$1</a> [R=301,L]<br> &lt;/IfModule&gt;<br>
 <br> A google on &#39;301 redirects&#39; brings up hundreds of examples and scenarios<br> <br><br> Mike Tipping wrote:<br> &gt; I have a client who because most of their site is out of date wants to<br> &gt; redirect all english and french pages to one external site, all german pages<br>
 &gt; to another external site but still allow people to access the admin pages<br> &gt; and a specific campaign section called ebook.<br> &gt;<br> &gt; The site is structured like:<br> &gt;<br> &gt; /en/...<br> &gt; /fr/...<br>
 &gt; /de/...<br> &gt; /admin/...<br> &gt; /ebook/...<br> &gt; /other/..<br> &gt; /etc/<br> &gt; /etc2/<br> &gt;<br> &gt; I presume this is possible with Mod rewrite but everything I try gets the<br> &gt; whole site to redirect rather than leaving the admin and ebook links<br>
 &gt; working.<br> &gt;<br> &gt; Any help appreciated.<br> &gt;<br> &gt; Cheers<br> &gt;<br> &gt; Mike<br> &gt;<br> &gt;<br> &gt;<br> &gt; _______________________________________________<br> &gt; Phpwm mailing list<br> &gt; <a href="mailto:Phpwm@mailman.lug.org.uk">Phpwm@mailman.lug.org.uk</a><br>
 &gt; <a href="https://mailman.lug.org.uk/mailman/listinfo/phpwm">https://mailman.lug.org.uk/mailman/listinfo/phpwm</a><br> &gt;<br> <br> <br> <br>--<br> Daniel Davies<br> <br> <a href="http://Sitedesign.net">Sitedesign.net</a> Ltd<br>
 Birchley House<br> Birchfield Lane<br> Oldbury<br> West Midlands<br> B69 1DT<br> <br> Tel: 0121 543 4840<br> Fax: 0121 543 4841<br> <br> <a href="http://www.sitedesign.net">http://www.sitedesign.net</a><br> <br> This email and its attachments may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Web <a href="http://Sitedesign.net">Sitedesign.net</a> Ltd.<br>
 <br><br> <br> _______________________________________________<br> Phpwm mailing list<br> <a href="mailto:Phpwm@mailman.lug.org.uk">Phpwm@mailman.lug.org.uk</a><br> <a href="https://mailman.lug.org.uk/mailman/listinfo/phpwm">https://mailman.lug.org.uk/mailman/listinfo/phpwm</a><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