/    Sign up×
Community /Pin to ProfileBookmark

Accessing web page without typing .html

I want to be able to make the pages on my site accessible without having to enter .html or .htm etc at the end of the address. How?

e.g.1 [url]www.mysite.co.nz/shops[/url]
Currently, to access this page, one has to type [url]www.mysite.co.nz/shops.html[/url]

e.g.2 [url]www.mysite.co.nz/redirect[/url]
Currently, have to type [url]www.mysite.co.nz/redirect.html[/url]

Let me know if more info is required for a solution…I am a beginner…

Thanks.

to post a comment
HTML

2 Comments(s)

Copy linkTweet thisAlerts:
@felgallOct 10.2006 — Most sites have the default web page where one is not specified set to index.html so the following two addresses will access the same page in the shops folder:

www.mysite.co.nz/shops/index.html

www.mysite.co.nz/shops

That's the easiest way to do it. There are other ways that involve placing commands in the .htaccess file to redirect file names.
×

Success!

Help @keight 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 5.7,
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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

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

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...