Viewing Removing .html extensions

Removing .html extensions



User: K P. 10 years ago
Hi all

I'm pretty new to all this and wondered if someone could help me remove .html extensions from my website. It's created in iWeb and saved locally before being published to 000webhost with iWeb SEO. Currently every page has .html after it and I'd like them not to. Any suggestions?

Many thanks

Ken
User: Roddy 10 years ago
A web page is an HTML document. The file extension is .html or .htm

Why would you want to remove this anyway?

-------------------------------
Roddy

Website: http://everwebwidgets.com
Contact: http://everwebwidgets.com/ewWidgets-home/contact.html
NOTE: I am an EverWeb user and NOT affiliated with EverWeb! Any opinions expressed in this forum are my own.
User: K P. 10 years ago
I want to do it so it looks cleaner and I send links to people and would rather send www.website.com/link than www.website.com/link.html as it looks cleaner and I work in the creative industries where people are sticklers for things like that. Do you think it's possible? I've heard a few things about editing .htaccess files but don't really understand it all...
User: Roddy 10 years ago
How are you sending these links to people? By Email?

-------------------------------
Roddy

Website: http://everwebwidgets.com
Contact: http://everwebwidgets.com/ewWidgets-home/contact.html
NOTE: I am an EverWeb user and NOT affiliated with EverWeb! Any opinions expressed in this forum are my own.
User: K P. 10 years ago
Some by email, some as urls on posters and at the end of videos so really just want it to be as straight forward as possible!
User: Roddy 10 years ago
A descriptive text link link is more clean and professional than a URL.

In mail, copy the URL to the clipboard, highlight the text, do Command K, paste and then hit the return/enter key.

-------------------------------
Roddy

Website: http://everwebwidgets.com
Contact: http://everwebwidgets.com/ewWidgets-home/contact.html
NOTE: I am an EverWeb user and NOT affiliated with EverWeb! Any opinions expressed in this forum are my own.
User: Paul-RAGESW 10 years ago
You cannot remove the .html part of a URL in iWeb, nor should you.

In EverWeb you would have to create your pages as directories and they wouldn't need the .html part.

But again, this isn't something you should try doing.

-------------------------------
Paul
EverWeb Developer
User: John C. 9 years ago
I have the same issue. My homepage can be accessed using mysite.co.uk (no need to add '.html'). But for another of my pages you HAVE to add '.html' otherwise the page will not load.
User: Roddy 9 years ago
A web page is an HTML document. The file extension is .html or .htm. If you don't have the file extension the page won't open. That's how web pages work. If the browser can't find a recognised file extension it can't open the page or file.

The home page opens with just the domain name because it is named index.html. If you have a web page in a directory (folder) and it is named "index.html", this page will open if just the directory name is included in the URL. None of the other pages will open without the correct file extension.

Visitors will access your home page via the domain name - mysite.co.uk - and then browse the pages using the navigation menu. They don't have to type anything.

-------------------------------
Roddy

Website: http://everwebwidgets.com
Contact: http://everwebwidgets.com/ewWidgets-home/contact.html
NOTE: I am an EverWeb user and NOT affiliated with EverWeb! Any opinions expressed in this forum are my own.
User: James G. 9 years ago
The .html extension tells everything what it is and how to access it. It works the same as any other extension. If you have an audio track with .mp3, and you remove the .mp3, nothing knows what that file is or how to handle it. Same with .mp4, .m4a, .odt, .doc, or ANY other extension. A jpeg without the .jpg extension is nothing more than a random file to your system
User: Paul-RAGESW 9 years ago
@John: This isn't an issue unique to you, this is how websites work. Did you see my reply about using directories? I don't recommend it though and with version 1.7 you need to enable the old behaviour by following these instructions.

Last edit 9 years ago

-------------------------------
Paul
EverWeb Developer
User: Christopher 9 years ago
Quote: Paul-RAGESW - 30/12/2014 0:31:47
Whoa. I'm glad I read this. That's a pretty big change. A good one though!

-------------------------------
rMBP 15", 2.6 Ghz, 16 GB RAM, OS X 10.11.6, with 27" Thunderbolt Cinema Display

www.cleetche.com


Post Reply
You must login or signup to post.