htaccess problem

#1
[eluser]mvdg27[/eluser]
Hi,

I'm using htaccess on my website now, to send all the requests to my index page as such:

RewriteEngine on
RewriteCond $1 !^(index\.php|robots\.txt|web)
RewriteRule ^(.*)$ /index.php/$1 [L]

As you see I've added 'web' to the rewrite condition as I've put all my resource files (graphics, scripts, etc.) in this directory.

However, whenever I use 'website' in my url, this apparently also matches the condition. So www.mydomain/website/arg1/arg2, produces an unexpected result.

Does anyone know how to change to htaccess, to only match the exact text 'web'?

Thanks!


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.