1

is there a way to disallow to go backwards to another directory? E.g.: The URL is http://www.example.com/subdirectory/

If there is a HTML file which links to the the URL "/file.txt" it should not leave the subdirectory. The slash has to be ignored. Are there some Rewrite Rules in htaccess to do this? The subdirectory should be handled like a root directory.

JavaForAndroid
  • 1,111
  • 2
  • 20
  • 42

1 Answers1

1

There is a similar question here. I believe it is what you are looking for:

.htaccess. deny root, allow specific subfolder. Possible?

Community
  • 1
  • 1
jjj
  • 35
  • 2
  • 11