CodeIgniter Forums
htaccess problem - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: htaccess problem (/showthread.php?tid=10575)



htaccess problem - El Forum - 08-05-2008

[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!