canadabeeau Posted March 5, 2010 Share Posted March 5, 2010 I have this mod_rewrite in my root folder Options +FollowSymlinks RewriteEngine On RewriteRule ^([a-zA-Z0-9]+/)*[a-zA-Z0-9]+$ /index.php?uri=$0 I need to exclude directories which are real folders from the mod_rewite so they can have their own mod_rewite, i.e. in root/administration/ i have index.php which should be able to pull its own $uri not the ones from the root $uri (mod_rewrite), at the moment its $uri is from the root-index.php if this is not clear or if anyone can help please post, thanks in advance Link to comment https://forums.phpfreaks.com/topic/194217-mod_rewrite-exlude/ Share on other sites More sharing options...
cags Posted March 5, 2010 Share Posted March 5, 2010 Options +FollowSymlinks RewriteEngine On RewriteCond %{REQUEST_URI} !-d RewriteRule ^([a-zA-Z0-9]+/)*[a-zA-Z0-9]+$ /index.php?uri=$0 Link to comment https://forums.phpfreaks.com/topic/194217-mod_rewrite-exlude/#findComment-1021851 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.