Reputation:
Consider I have a file 'fg' and a folder 'fg' in the same directory. Now when user visit, he/she get content of file rather than content of directory. How to do this using .htaccess
Upvotes: 1
Views: 490
Reputation: 3186
This answer should be what you're after.
It is using the .htaccess file to rewrite directories to a file if both exist.
Upvotes: 0