httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Gushlow <nick.gush...@westcoast.co.uk>
Subject RE: [users@httpd] Rewrite If Statements
Date Thu, 24 Feb 2005 08:41:05 GMT
On Wed, 2005-02-23 at 17:56 +0100, Boyle Owen wrote:


> Following from Joshua's comment, I should point out that I'd forgotten
> about the [L] (last) flag. This allows you to make full-scale switch
> statements, eg:
> 
> 	RewriteCond condition_1
> 	RewriteRule rule_1 [L]
> 
> 	RewriteCond condition_2
> 	RewriteRule rule_2 [S=1]
> 	RewriteRule rule_3
> 
> Now cond_1 and cond_2 don't need to be mutually exclusive. If cond_1 is
> true, rule_1 gets executed then we exit mod_rewrite.
> 


That definitely seems to be the solution to my problem.

Thanks,

Nick.


Mime
View raw message