What is the best way to say mod_rewrite to prevent processing rules on a list of URLs?
Normally you can do something like this:
Rivet condom% {REQUEST_URL}! ^ / Foo rewrite R [L] If there are more rules, then you need to make sure that they are not re-applied to ^ / foo!
What is a good way to say:
RewriteCond% {REQUEST_URL} ^ / foo #no Rewrite Rules Anytime Apply
Since RewriteRule can automatically match the URI, you will see RewriteCond No need to use. A RewriteRule for which the action should be re-written only with a - hyphen with a [L] flag matching path.
# Pre-write / FU before re-writing this rule matches / FU and * does not take any action. * The rewriting rule ^ Efu - [L] # Other rules may be followed. .. # A typical rewrite for example, rewinded% {REQUEST_FILENAME] in general use! -f RecriminateCount% {REQUEST_FILENAME]! -d RevertCand (. *) Index.php? Id = $ 1 [L] Note: I will be used in the context of .htaccess assuming ^ foo . If you are using it at the server level, then you must include the leading / foo as the / .
No comments:
Post a Comment