iis - Do MOD_Rewrite rewrites invoke a second run through the rewrite rules? -


when rewriterule executed mod_rewrite mod_rewrite rules executed again newly generated request? in following example, cause loop?

rewritecond host:  (?:www\.)?mysite\.com rewriterule ^(.*)$ $1 [qsa,l] 

in case, won't @ rate loop. have "l" switch on, fixing particular rule last one.

further, have explicitly force next iteration using "n" or "ns" switches, or move through rule file , stop last rule matches. docs:

n (next iteration)

forces rewriting engine modify rule's target , restart rules checking beginning (all modifications saved). number of restarts limited value specified in repeatlimit directive. if number exceeded n flag ignored.

ns (next iteration of same rule)

works n flag restarts rules processing same rule (i.e. forces repeat of rule application). maximum number of single rule iterations given repeatlimit directive. number of single rule repeats not count global number of repeats (i.e. repeats limit number of iterations caused n flag independent of number of repeats caused ns).


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -