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> <<a href="mailto:daniel@sitedesign.net">daniel@sitedesign.net</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;">
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> <IfModule mod_rewrite.c><br> RewriteEngine On<br> RewriteCond %{HTTP_HOST} ^danux\.co\.uk$ [NC]<br> RewriteRule ^(.*)$ <a href="http://www.danux.co.uk/$1">http://www.danux.co.uk/$1</a> [R=301,L]<br> </IfModule><br>
<br> A google on '301 redirects' brings up hundreds of examples and scenarios<br> <br><br> Mike Tipping wrote:<br> > 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">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> ><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