Controlling access by folder
2 posts
• Page 1 of 1
Controlling access by folder
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?
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?
- HeliconAndrew
- Posts: 1264
- Joined: 07 Mar 2012, 10:16
Re: Controlling access by folder
Hi,
Do you mean in terms of performance? Or what?
Do you mean in terms of performance? Or what?
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 0 guests