How do I remove .html from my URL?
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.
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.
-
- Joomla! Intern
- Posts: 74
- Joined: Fri Mar 20, 2009 12:51 am
How do I remove .html from my URL?
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
How can I remove the .html now so it just shows: http://mywebsite.com/the-news
- goslingcools
- 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?
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 ;-)
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
-
- Joomla! Intern
- Posts: 74
- Joined: Fri Mar 20, 2009 12:51 am
Re: How do I remove .html from my URL?
I just don't want it like that. I want it without the extensions.
- ranjani
- Joomla! Explorer
- Posts: 331
- Joined: Fri Nov 26, 2010 3:36 pm
Re: How do I remove .html from my URL?
^ assuming that you are using standard Joomla SEO settings feature
(in Global Configuration) , you can try selecting NO for "Add suffix to URLs"
(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 *
- goslingcools
- 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?
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...
;-)
But I was assuming you just wanted it to be removed from one specific url only...
;-)
Gosling Cools | COBIZ webdevelopment | http://www.cobiz.nl
-
- Joomla! Intern
- Posts: 74
- Joined: Fri Mar 20, 2009 12:51 am
Re: How do I remove .html from my URL?
I got it. I turned off the Add suffix to URL.
- modernmagic
- 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?
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/
Joomla! User Group Leadership Team http://www.ocjoomlausergroup.org/
-
- 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?
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
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
- modernmagic
- 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?
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.
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/
Joomla! User Group Leadership Team http://www.ocjoomlausergroup.org/
-
- 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?
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.
But i'm equally concerned from the SEO view point. Will appreciate if you can share your thoughts on this.
- modernmagic
- 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?
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.
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/
Joomla! User Group Leadership Team http://www.ocjoomlausergroup.org/
-
- 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?
Hum, althrough i dont use K2, but i'll definitely give it a through.
Anyway many thanks for responding to this old thread
Anyway many thanks for responding to this old thread
- modernmagic
- 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?
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/
Joomla! User Group Leadership Team http://www.ocjoomlausergroup.org/
- modernmagic
- 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?
Do you have a specific question regarding joomla and SEO?flowersfly wrote:I come to learn your the SEO view point. Because I have just contact with these.
Joomla! Website Designer http://www.modernmagic.com
Joomla! User Group Leadership Team http://www.ocjoomlausergroup.org/
Joomla! User Group Leadership Team http://www.ocjoomlausergroup.org/
- modernmagic
- 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?
I'm sorry, but I am having a hard time understanding your English.flowersfly wrote:No, I don't know what started.
Joomla! Website Designer http://www.modernmagic.com
Joomla! User Group Leadership Team http://www.ocjoomlausergroup.org/
Joomla! User Group Leadership Team http://www.ocjoomlausergroup.org/
-
- Joomla! Fledgling
- Posts: 2
- Joined: Fri Oct 13, 2017 9:23 am
Re: How do I remove .html from my URL?
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?
can anyone suggest me best way to remove .html tags?