/    Sign up×
Community /Pin to ProfileBookmark

Default HTML page in and folder ?

Instead of writing paragraphs explaining the extract situation I will keep this simple.

When people go to [url]www.whatever.com[/url] by default they got to [url]www.whatever.com/index.html[/url]

If I was to provide a link like [url]www.whatever.com/catalog[/url] without a .html or .htm just the folder address will it always got to a 404 page or is there away to set up a default page in that specific folder ?

Any help would be appreciated thank you

to post a comment
HTML

3 Comments(s)

Copy linkTweet thisAlerts:
@martinsjhauthorDec 06.2012 — Sorry for my mispellings
Copy linkTweet thisAlerts:
@rtretheweyDec 07.2012 — Every server has a set of acceptable default file names for each directory that get served when the user requests the root URL for that domain/directory. These are generally the file names you know, "index.html", "default.html", etc., but it can be set to a different name, if needed.

However, changing the default directory is an entirely different matter. It can be done in two different ways. (1) You can set the default directory on the server, or (2) you can set up redirects so that all requests for the root directory and redirected to the selected alternate directory. With method 1, the user never sees the directory name in his browser. With method 2, he does. This is strictly a matter of choice, but the details depend on the type of software that runs your server - usually Apache or Microsoft IIs. What software runs your server?
Copy linkTweet thisAlerts:
@NickJohnsonDec 07.2012 — This is url syntax

protocol://domainOrIPAddress:port/path/filename

According to that synatx url is been made by the server.....
×

Success!

Help @martinsjh spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...