Forum Moderators: phranque
I'd like to remove the clutter of:
RewriteCond ....
RewriteRule ....
RewriteCond ....
RewriteRule ....
RewriteCond ....
RewriteRule ....
etc.
Any way to do that? I read through the manual [httpd.apache.org], but didn't see anything that looked helpful.
Note that it is not recommended to experiment with mod_rewrite on a production server :-)
# If condition NOT true
RewriteCond [b]![/b]<condition>
# Then skip next 5 rules
RewriteRule .* - [S=5]
#
# The following 5 rules will be executed only if the original condition was true
RewriteRule ....
- 3 more -
RewriteRule ....
#
# Processing resumes here if the original condition was not true