The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

> removing .html extension in folders
matthewhunt
post 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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
 
Reply to this topicStart new topic
Replies
Christian J
post 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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 24th April 2024 - 05:45 AM