Remove .html extension & Redirect All pages to clean URLs without .html

Remove .html extension & Redirect All pages to clean URLs without .html
Share
Summarize this Content with AI

Are you tired of having clunky URLs on your website with the .html extension at the end? Look no further! In this comprehensive guide by owrbit, we will show you how to easily remove the .html extension from your URLs and redirect all pages to clean, extension-less URLs.

Having clean and user-friendly URLs is not only aesthetically good but also beneficial for SEO and overall user experience. With Owrbit’s step-by-step instructions, you can seamlessly transition your website to have sleek URLs without the .html extension. By following this guide, you will learn how to create clean URLs that are easy to read, remember, and share.

Guide To Remove .html Extension From All Pages :

  • Login to your cPanel or DirectAdmin (basically hosting control panel).
  • Find your file manager option and tap on it.
  • Go to “public_html” and find a file names .htaccess. If there is no file with this name make a new one. Right click on the file and click on edit.
  • You are now in the htaccess editor. Paste the code written below. Remember to change the “domain” with your primary domain.

RedirectMatch 301 ^/(.*).html$ /$1

Summarize this Content with AI

Discover more from Owrbit

Subscribe to get the latest posts sent to your email.

Best Video Hosting Platforms

Top 3 Best Video Hosting Platforms of 2024: Copyright Free

Prev
Free wordpress templates & Themes

Get Free WordPress Templates From Envato Elements & ThemeForest

Next
Comments
View Comments (1)

Leave a Reply

Updates, No Noise
Updates, No Noise
Updates, No Noise
Stay in the Loop
Updates, No Noise
Moments and insights — shared with care.

Discover more from Owrbit

Subscribe now to keep reading and get access to the full archive.

Continue reading