On the left is a menu of Video Quick Jump Links so you can skip to a section of the video on 🎬 Video Demonstrating Characteristics of HTACCESS Code to Remove the PHP Extension from URL you want.
Underneath the video is the total text transcript about 🎬 video demonstrating characteristics of htaccess code to remove the php extension from url if you wish to read along at the same time the video is going.
You can look over these additional tutorials (links open in new window so you don' lose your spot here) ...
Text Transcript of Video Showing 🎬 Video Demonstrating Characteristics of HTACCESS Code to Remove the PHP Extension from URL
00:01 In this video I'm going to show you how you can use .htaccess to remove or hide the .php extension at the end of URLs and what I mean by that is if you have a website and the web pages are .php pages, the url in the address bar of your websites visitors web browser is going to end with .php.
00:23 This is somewhat of a security risk, letting the world know your websites pages are driven by php but it's also not as professional looking as if your websites web page addresses ends without the php at the end. Here is another example of a php website where you do not see the php extension at the end of the web pages url. It's just a little bit neater and better way to display your websites web pages to your visitors and this is easy enough to pull off with a simple entry in your web servers .htaccess file.
00:52 This is the .htaccess code here and to remove the .php extension from your websites urls your web server needs to have an .htaccess file. Most people today use WordPress so if you do your website does already have an .htaccess file. What you want to do is download this htaccess file using a program like Filezilla which is free. Navigate to the root of your websites web server with Filezilla and look for the file that reads .htaccess. In the left side of Filezilla will be the files and directories on your computer. Select the location you wish to download your web servers .htaccess file to. In the right side of Filezilla double click the .htaccess file to download it to the location you selected on the left side of Filezilla.
01:41 If your web server does not already have an age to access file you can easily create one by right click on your computers desktop, select NEW >> TEXT DOCUMENT. Open this newly created file up, copy and paste the .htaccess code on this web page into this new text file. If your web server already has an .htaccess file and you've downloaded it to your computer, double-click the file to open it, create a blank area within the .htaccess file by clicking the mouse cursor in the file and pressing the ENTER key a few times to create a separate blank area to paste the hide php extension code to. Save the .htaccess file with the hide php extension pasted in. Make sure the file get saved literally as .htaccess
. There is no text before the period.
02:32 If your web server already had a pre-existing .htaccess file re-uploaded replacing the old .htaccess file with the new one. If your web server does not have an .htaccess file, upload the one you just created, using Filezilla, to the root of your web server. Immediately after uploading the htaccess file you can navigate to any of the pages on your website and you will no longer see .php at the end of your web pages url's. Keep in mind you do not have to change any of the links on your website. The current links on your web pages that end with .php, when your website visitors click on these links they'll still be directed to the appropriate pages, the difference being the .php
will no longer be visible in your website visitors web browsers address bar.
You'll be able to download the text transcript of this 🎬 video demonstrating characteristics of htaccess code to remove the php extension from url.