[Phpwm] Mod rewrite question

Phil Burrows phil at tektlab.co.uk
Tue Apr 1 12:02:47 BST 2008


Try putting different .htaccess in each directory.

On 01/04/2008, Mike Tipping <mike at etuna.co.uk> wrote:
>
>  If I put a redirect .httaccess in the root and not in the ebooks
> directory the ebook directory still redirects.
>
> The stuff that I've read suggests I can add a .httaccess to the root with
> something like
>
> !(admin|ebook)
>
> 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.
>
>
> On 1/4/08 11:48, "Phil Burrows" <phil at tektlab.co.uk> wrote:
>
> 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.
>
> On 01/04/2008, *Mike Tipping* <mike at etuna.co.uk> wrote:
>
> I have a client who because most of their site is out of date wants to
>  redirect all english and french pages to one external site, all german
> pages
>  to another external site but still allow people to access the admin pages
>  and a specific campaign section called ebook.
>
>  The site is structured like:
>
>  /en/...
>  /fr/...
>  /de/...
>  /admin/...
>  /ebook/...
>  /other/..
>  /etc/
>  /etc2/
>
>  I presume this is possible with Mod rewrite but everything I try gets the
>  whole site to redirect rather than leaving the admin and ebook links
>  working.
>
>  Any help appreciated.
>
>  Cheers
>
>  Mike
>
>
>
>  _______________________________________________
>  Phpwm mailing list
>  Phpwm at mailman.lug.org.uk
>  https://mailman.lug.org.uk/mailman/listinfo/phpwm
>
>
>
>
>
>
> _______________________________________________
> Phpwm mailing list
> Phpwm at mailman.lug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/phpwm
>
>


-- 
Phil Burrows

Call for a strong Climate Change Bill at
www.foe.co.uk/campaigns/climate/press_for_change/email_mp/index.html

Address:
47 Brooklands Drive
Kings Heath
Birmingham
B14 6EJ

Telephone:
0121 243 6008
07883 022304
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.lug.org.uk/pipermail/phpwm/attachments/20080401/e5f368e4/attachment-0001.html


More information about the Phpwm mailing list