Customizing SMF > SMF Coding Discussion
htaccess Question
(1/1)
ziycon:
I have the below rule.
--- Code: ---RewriteRule ^([^/]*)\/$ /page.php?type=$1 [L]
--- End code ---
And i want it to exclude certian sub-directories as currently it changes everything, any ideas?
MrPhil:
Try something like
--- Code: ---RewriteCond %{REQUEST_URI} !^/exclude1/ [NC]
RewriteCond %{REQUEST_URI} !^/exclude2/ [NC]
etc. list all excluded paths
RewriteRule ...
--- End code ---
ziycon:
Nice one MrPhil, thanks for that.
Navigation
[0] Message Index
Go to full version