removing .html extension in folders |
removing .html extension in folders |
matthewhunt |
Aug 16 2017, 10:30 PM
Post
#1
|
Group: Members Posts: 9 Joined: 15-February 07 Member No.: 1,910 |
I have a site with pages organised into different folders. For example:
http://www.matthewhunt.com/cinema/index.html I can access this page by typing http://www.matthewhunt.com/cinema/ but http://www.matthewhunt.com/cinema (without the final /) returns a 404 error. How can I configure to access via http://www.matthewhunt.com/cinema (without the final /)? Thank you. |
Christian J |
Aug 17 2017, 05:56 AM
Post
#2
|
. Group: WDG Moderators Posts: 9,656 Joined: 10-August 06 Member No.: 7 |
Normally a URL without a trailing slash indicates a file, not a directory. This can be changed on the server in various ways, details may differ between web hosts.
Personally I'd keep the slashes for directories, it's both simpler and easier to understand. |
Lo-Fi Version | Time is now: 24th April 2024 - 05:45 AM |