Controlling access by folder

ISAPI_Rewrite is Apache mod_rewrite compatible URL rewriter for Microsoft IIS
User avatar
Posts: 92
Joined: 01 Dec 2012, 14:22

Controlling access by folder

23 Jul 2014, 13:11

I have a situation where there are two virtual directories that point to the same physical path (can't be changed, it's to do with the way the underlying code platform works).

There are a bunch of "pages" that are actually active functions gated via ASP.

On this site, there are two "gateways" - the virtual directories.

One is /mqh and the other is /mqha - the latter being the admin back-end.

What I want to achieve is that if someone tries to "mix" the function sets, they'll get a "forbidden" status.

E.g it's OK to do /mqh/search.html ...
it's OK to do /mqha/a-sections.html...

but NOT /mqh/a-sections.html

Is the best way just to have a rule that says:

RewriteRule ^mqh/a-.*

Or should I use a LocationMatch?

User avatar
Posts: 1264
Joined: 07 Mar 2012, 10:16

Re: Controlling access by folder

23 Jul 2014, 18:43

Hi,

Do you mean in terms of performance? Or what?

Return to ISAPI_Rewrite 3.0

Who is online

Users browsing this forum: No registered users and 0 guests