Looking to separate out URL from URI
I have several directories on a webserver
server1.corp.com/abc/admin
server1.corp.com/abc/user
server1 is accessible from the internet, I have an external NAT setup to point to the F5 which we're using as a reverse proxy and I want to limit web requests to only go to "server1.corp.com/abc/user" and not /abc/admin. That should be easy enough right? ... Well they share common .css and .js files in /abc
So what I'm looking to accomplish is allow requests with "/abc/user", "/abc/." but not "/abc/admin" or "/abc/*/."
Hopefully that notation makes sense... basically the files in /abc are fair game but additional directories aren't.
This is the basic start i have already, obviously it doesn't quite accomplish what i'm looking to do yet. If I checked again /abc/user as the path in the if statement I'd lose all formatting on the page.
"server1.corp.com"
{
if { not ([string tolower [HTTP::path]] starts_with "/abc") } {
HTTP::path "/abc/user"
}
}