Block Subdirectories

0

hello together

Is it possible to Block Sundirectories (without esp) eg. test.bls.ch/test ist blocked and test.bls.ch is allowed?

Thanks for the answer
Patrik

1 comment

Avatar
0
Barry Gleeson

Hi Patrick,
One method would be to create a content Rule to change the URL for all subdirectories back to the main directory. The Address Bar of the Browser will still show what the user typed in this case.

Typically the more common requirement is the opposite i.e. test.bls.ch/ -> test.bls.ch/test
https://support.kemptechnologies.com/hc/en-us/articles/201836357-How-can-I-redirect-the-root-of-the-web-server-to-a-specific-directory

However in your case a similar Rule should work (as follows):

Rule Name: Redirect_to_Root
Rule Type: Modify URL
Match String: /^.*/
Modified URL: /