Questions? Call (860)407-2687
find us on:

🧾 Info About HTACCESS Code to Remove the PHP Extension from URL

short url:

This page will show you This page is going to show you the correct PHP code to remove the .php extension at the end of a web page url.

This will allow you to hide the fact your website has its pages driven by php, results in web page urls that are more professional and cleaner looking.

🧾 Info About HTACCESS Code to Remove the PHP Extension from URL

Configuring your .htaccess file so that the .php extension no longer appears in the web browsers address bar is a great idea for a couple of reasons:

  • It is a bit of a security exposure risk to reveal the extensions of your web page files.
  • The removal of the .php extension from your web pages is both neater and more professional looking and makes it slightly easier for your website visitors to remember the url of your web pages.

The HTACCESS Code to Remove the PHP Extension From your Websites Web Page Url's

  1. Download the .htaccess file that currently resides on your websites web server. It is possible that your web server does not have an .htaccess file already, although highly unlikely. If your web server does not already have and .htaccess file on it, create a blank text file on your computer and give it the name .htaccess. Note that is not a misprint. You must literally name the file with a period . followed by htaccess .htaccess.
  2. Copy and paste the htaccess code showing in the textbox below into the htaccess file.
  3. Save the htaccess file as and upload to your web server at the location/directory you downloaded from. If your web server does not have an .htaccess file already then upload the .htaccess file you have just created to the root or home page of your website.

CONTENT RELATED TO 🧾 INFO ABOUT HTACCESS CODE TO REMOVE THE PHP EXTENSION FROM URL



Extension To Check All Checkboxes On Webpage

... xes below instantly get checked. checkbox 1checkbox 2checkbox 3checkbox 4checkbox 5checkbox 6checkbox 7checkbox 8checkbox 9checkbox 10checkbox 11checkbox 12checkbox 13checkbox 14checkbox 15checkbox 16 ...

Pinterest Pin It Button On Image Hover With A

... t code so the Pin It buttons don't work right on your website? I remember many years ago, I had a news related website and I pasted some code in all the pages that allowed for the display of a scrolli ...

How To Put Mouse Cursor Inside Input Text Tex

... pBox.setActive; and varInpBox.select(); is the finishing touch that ensures the code works properly and (almost) all the time in all browsers and devices. The above code successfully puts the cursor i ...
Question ❔
Back to Top
S
H
A
R
E