How to Remove File Extension From URLs

If you want to remove the file extension from the URLs, then this tutorial designed for you, keep your close attention in the tutorial as I am going to share how to remove the file extension from URLs.

If your site URL is and you want it to be like, then use the code as suggested below.

How to Remove File Extension from URLs

Open the .htaccess file and copy paste below code at the end of the file. The .htaccess file is located in the root directory of your website. Below code will remove the .php from URLs.

If you like FreeWebMentor and you would like to contribute, you can write an article and mail your article to [email protected] Your article will appear on the FreeWebMentor main page and help other developers.

Recommended Posts:

Prem Tiwari

An engineer by profession and a passionate blogger by heart. Founder of (A Programming blog for beginners), Tech Speaker at various forums. A part from this he is an open source enthusiast, WordPress Lover, Blogger, SEO, and Growth Strategic.

Article Tags: , , , , ,