...

View Full Version : Apache Rewrite rule problem



Dr-Leech
04-12-2006, 12:53 AM
Hi,
I know it's not a PHP problem, but I can't find the right forum to post it, and my app is in PHP.

I have this rules in the root .htaccess:

RewriteEngine On
RewriteBase /

RewriteRule index.php - [L]
RewriteRule ^(.*)$ index.php?aurl=$1

And I want to create a directory with another application but I want to avoid this rule for this directory.

Any idea?

schleppel
04-12-2006, 01:09 AM
I can't find the right forum to post it
They usually go in the Other server side languages/ issues (http://www.codingforums.com/forumdisplay.php?f=9) forum.

So you want the RewriteRule to ignore the a directory with your application in it?

RewriteEngine On

RewriteRule ^the-directory(/.*)$ - [L]
RewriteRule ^index\.php$ - [L]
RewriteRule ^(.*)$ /index.php?aurl=$1 [L]
Just change "the-directory" to the directory with your application in it.

Dr-Leech
04-12-2006, 01:35 AM
thank you so much.. :)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum