I want to use the following URL:
my-domain.com/urlname
and have a directory in my webspace with the same name as the url.
In my htaccess I have the follwing RewriteRule
RewriteRule ^urlname$ landingpage.php [L,QSA]
As soon as I add a folder to my webspace with the same name “urlname” I can’t open the url anymore with my browser. When the folder “urlname” exists, Chrome automatically adds a trailing slash to the url and says “Access forbidden!”.
Is it possible to have an url with the same name as a folder (which really exists, without using htaccess):
my-domain.com/urlname
my-domain.com/urlname/