if RewriteCond => match then stop processing

ISAPI_Rewrite is Apache mod_rewrite compatible URL rewriter for Microsoft IIS
User avatar
Posts: 6
Joined: 27 Jan 2016, 16:18

if RewriteCond => match then stop processing

10 Apr 2017, 17:08

Quick question from a N00b:
how do I implement the following?
Code: Select all
RewriteCond TestString CondPattern
if => match
   stop processing
else
  RewriteCond TestString2 CondPattern2


many thanks for any help

User avatar
Posts: 402
Joined: 06 Mar 2012, 11:59

Re: if RewriteCond => match then stop processing

18 Apr 2017, 10:27

Hello.

If by "stop processing" you mean stop the entire .htaccess processing, then use this:

RewriteCond TestString Pattern
RewriteRule .? - [L]

This rule simply stops processing leaving URL intact.

User avatar
Posts: 6
Joined: 27 Jan 2016, 16:18

Re: if RewriteCond => match then stop processing

18 Apr 2017, 15:38

cool, thanks. I am a medical doctor, my coding skills are rudimentary! :)

User avatar
Posts: 2
Joined: 29 Nov 2017, 07:17

Re: if RewriteCond => match then stop processing

29 Nov 2017, 07:19

Such a great post to know different useful information.

Return to ISAPI_Rewrite 3.0

Who is online

Users browsing this forum: No registered users and 19 guests