How do I remove .html from my URL?

General questions relating to Joomla! 1.5 There are other boards for more specific help on Joomla! features and extensions.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Locked
rjohnson1990
Joomla! Intern
Joomla! Intern
Posts: 74
Joined: Fri Mar 20, 2009 12:51 am

How do I remove .html from my URL?

Post by rjohnson1990 » Sun Jan 16, 2011 3:19 am

I have all 3 SEF options set to yes and I have changed my htaccess.txt to .htaccess before doing so, but now my URL looks like this: http://mywebsite.com/the-news.html

How can I remove the .html now so it just shows: http://mywebsite.com/the-news

User avatar
goslingcools
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 106
Joined: Fri Jan 16, 2009 9:21 pm
Location: Netherlands, The Hague
Contact:

Re: How do I remove .html from my URL?

Post by goslingcools » Sun Jan 16, 2011 3:22 am

With default SEF you can't. With SEF components you can. But why should you remove it?!
If this was a plain html website (no Joomla) you would also see the-news.html... So it's perfect ;-)
Gosling Cools | COBIZ webdevelopment | http://www.cobiz.nl

rjohnson1990
Joomla! Intern
Joomla! Intern
Posts: 74
Joined: Fri Mar 20, 2009 12:51 am

Re: How do I remove .html from my URL?

Post by rjohnson1990 » Sun Jan 16, 2011 3:40 am

I just don't want it like that. I want it without the extensions.

User avatar
ranjani
Joomla! Explorer
Joomla! Explorer
Posts: 331
Joined: Fri Nov 26, 2010 3:36 pm

Re: How do I remove .html from my URL?

Post by ranjani » Sun Jan 16, 2011 3:02 pm

^ assuming that you are using standard Joomla SEO settings feature
(in Global Configuration) , you can try selecting NO for "Add suffix to URLs"
* Good Bye until I come back for participation. All the Best - r *

User avatar
goslingcools
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 106
Joined: Fri Jan 16, 2009 9:21 pm
Location: Netherlands, The Hague
Contact:

Re: How do I remove .html from my URL?

Post by goslingcools » Sun Jan 16, 2011 3:13 pm

Yes it's possible to turn if off for all urls.
But I was assuming you just wanted it to be removed from one specific url only...

;-)
Gosling Cools | COBIZ webdevelopment | http://www.cobiz.nl

rjohnson1990
Joomla! Intern
Joomla! Intern
Posts: 74
Joined: Fri Mar 20, 2009 12:51 am

Re: How do I remove .html from my URL?

Post by rjohnson1990 » Mon Jan 17, 2011 4:03 am

I got it. I turned off the Add suffix to URL.

User avatar
modernmagic
Joomla! Explorer
Joomla! Explorer
Posts: 386
Joined: Mon Aug 10, 2009 3:58 pm
Location: Laguna Beach, CA, USA
Contact:

Re: How do I remove .html from my URL?

Post by modernmagic » Fri Jul 08, 2011 6:45 pm

If you only care about the .html then you can paste this into your .htaccess file:

Code: Select all

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.html [NC,L]
Joomla! Website Designer http://www.modernmagic.com
Joomla! User Group Leadership Team http://www.ocjoomlausergroup.org/

hehaaj
Joomla! Apprentice
Joomla! Apprentice
Posts: 34
Joined: Wed Oct 12, 2011 2:15 pm
Location: Glasgow, UK
Contact:

Re: How do I remove .html from my URL?

Post by hehaaj » Tue Oct 18, 2011 11:58 pm

Hey,
I've followed the instructions. I've Selected "NO" for Adds Suffix to URL in SEO Joomla Config option.
I have added code mentioned by Modernmagic in .htaccess
I also have installed sh404SEF, and have left blank.

I've read in other posts that you've to purge sef url, can you tell me how to do it, i'll appreciate that.
Cheers
Online Marketing Consultant http://www.mbitsol.com
Back Office Outsourcing http://www.axiaer.com

User avatar
modernmagic
Joomla! Explorer
Joomla! Explorer
Posts: 386
Joined: Mon Aug 10, 2009 3:58 pm
Location: Laguna Beach, CA, USA
Contact:

Re: How do I remove .html from my URL?

Post by modernmagic » Wed Oct 19, 2011 2:24 am

I had a few extensions and SEO factors that changed my mind about needing to take the .html off the SEF URL.

I'm sorry I cannot help you trouble shoot this.
Joomla! Website Designer http://www.modernmagic.com
Joomla! User Group Leadership Team http://www.ocjoomlausergroup.org/

hehaaj
Joomla! Apprentice
Joomla! Apprentice
Posts: 34
Joined: Wed Oct 12, 2011 2:15 pm
Location: Glasgow, UK
Contact:

Re: How do I remove .html from my URL?

Post by hehaaj » Wed Oct 19, 2011 10:38 am

Modernmagic, would you like sharing those factors, because the only factor that i was skipping was to purge the Url's. When i did so, it successfully removed the .html from my urls.
But i'm equally concerned from the SEO view point. Will appreciate if you can share your thoughts on this.
Online Marketing Consultant http://www.mbitsol.com
Back Office Outsourcing http://www.axiaer.com

User avatar
modernmagic
Joomla! Explorer
Joomla! Explorer
Posts: 386
Joined: Mon Aug 10, 2009 3:58 pm
Location: Laguna Beach, CA, USA
Contact:

Re: How do I remove .html from my URL?

Post by modernmagic » Wed Oct 19, 2011 7:05 pm

I use the K2 extension. The tag listing page feature creates a url like this: www.primocraft.com/tag/Oxford.html?ml=1

When I attempted to take the .html out of all my urls for the site, I couldn't get the K2 Tag page to work properly.
Joomla! Website Designer http://www.modernmagic.com
Joomla! User Group Leadership Team http://www.ocjoomlausergroup.org/

hehaaj
Joomla! Apprentice
Joomla! Apprentice
Posts: 34
Joined: Wed Oct 12, 2011 2:15 pm
Location: Glasgow, UK
Contact:

Re: How do I remove .html from my URL?

Post by hehaaj » Thu Oct 20, 2011 12:03 pm

Hum, althrough i dont use K2, but i'll definitely give it a through.

Anyway many thanks for responding to this old thread :)
Online Marketing Consultant http://www.mbitsol.com
Back Office Outsourcing http://www.axiaer.com

User avatar
modernmagic
Joomla! Explorer
Joomla! Explorer
Posts: 386
Joined: Mon Aug 10, 2009 3:58 pm
Location: Laguna Beach, CA, USA
Contact:

Re: How do I remove .html from my URL?

Post by modernmagic » Thu Oct 20, 2011 6:45 pm

I wasn't saying K2 would resolve your question. K2 is the reason I stopped trying to remove the .html
Joomla! Website Designer http://www.modernmagic.com
Joomla! User Group Leadership Team http://www.ocjoomlausergroup.org/

User avatar
modernmagic
Joomla! Explorer
Joomla! Explorer
Posts: 386
Joined: Mon Aug 10, 2009 3:58 pm
Location: Laguna Beach, CA, USA
Contact:

Re: How do I remove .html from my URL?

Post by modernmagic » Fri Oct 21, 2011 3:22 am

flowersfly wrote:I come to learn your the SEO view point. Because I have just contact with these.
Do you have a specific question regarding joomla and SEO?
Joomla! Website Designer http://www.modernmagic.com
Joomla! User Group Leadership Team http://www.ocjoomlausergroup.org/

User avatar
modernmagic
Joomla! Explorer
Joomla! Explorer
Posts: 386
Joined: Mon Aug 10, 2009 3:58 pm
Location: Laguna Beach, CA, USA
Contact:

Re: How do I remove .html from my URL?

Post by modernmagic » Fri Oct 21, 2011 4:04 am

flowersfly wrote:No, I don't know what started.
I'm sorry, but I am having a hard time understanding your English.
Joomla! Website Designer http://www.modernmagic.com
Joomla! User Group Leadership Team http://www.ocjoomlausergroup.org/

venkatgopu
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Fri Oct 13, 2017 9:23 am

Re: How do I remove .html from my URL?

Post by venkatgopu » Fri Oct 20, 2017 5:21 am

i would like to remove .html tags from all urls in my website. i have tried with sef:say 'no' to add suffix to URL.but every page in my website getting 404 error.


can anyone suggest me best way to remove .html tags?


Locked

Return to “General Questions/New to Joomla! 1.5”