Forum Moderators: phranque

Message Too Old, No Replies

Excluding directories from mod_rewrite

         

tebrino

1:08 pm on Mar 15, 2006 (gmt 0)

10+ Year Member



I have following rule:

RewriteEngine on
RewriteBase /

RewriteRule (.*)/index\.php$ /index.php?lang=$1

This works like it should and creates user friendly URLs like this one:

http://www.example.com/deutsch/index.php

But it also prevents me from accessing index.php files in other directories like in phpadsnew/index.php or admin/index.php. Is there any way to exclude these directories?

jdMorgan

12:57 am on Mar 16, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



What does a lower-level-directory URL looki like with a language specified?

phpadsnew/deutch/index.php?
-or-
deutch/phpadsnew/index.php?

Jim

tebrino

1:40 am on Mar 16, 2006 (gmt 0)

10+ Year Member



Thanks for your reply.

Reply you posted in the other thread solved this issue.

Thanks again