Forum Moderators: phranque
So, for example, these would meet the condition(s):
www.mydomain.com/index.html
mydomain.com/page2.html
www.mydomain.com
But, these would not meet the condition(s):
www.mydomain.com/sub1/index.html
www.mydomain.com/sub1/sub1a/page2.html
mydomain.com/sub1/
www.mydomain.com/sub1 [If this last one, w/o the trailing slash, causes an additional coding problem, it is not essential]
A related question: Is there a rule that can distinguish between a request for the root directory (alone) and a request for any file in the root directory? In other words, between these two:
www.mydomain.com/page2.html [versus]
www.mydomain.com [with or w/o the trailing slash]
Thank you.
For a few of your examples, the lack of trailing "/" in the URL is an additional problem. It is normal to fix those to add the trailing "/" to all such requests.