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

🎬 Video Showcasing Characteristics of HTACCESS Code to Remove the PHP Extension from URL

short url:

To the left is a menu of Video Quick Jump Links that makes it easy for you to jump to any section of the video on 🎬 Video Showcasing Characteristics of HTACCESS Code to Remove the PHP Extension from URL you want to view.

Under the video is the complete video text transcript about 🎬 video showcasing characteristics of htaccess code to remove the php extension from url so you can read as opposed to view the video.

If these instructions are not understandable, feel free to view these other instructions (links open in new window so you don' lose your place here) ...

Text Transcript of Video Showing 🎬 Video Showcasing 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 may download the text transcript of this 🎬 video showcasing characteristics of htaccess code to remove the php extension from url.

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



Pinterest Pin It Button On Image Hover With A

... ernal scripts or dependencies, Javascript code for having a Pin It buttom appear over images on mouse hover and you don't mind getting your hands a little bit code dirty, the Javascript source code be ...

How To Auto Refresh Image On Web Page

... auto refresh an image on a web page using PHP. It can be accomplished indirectly using Javascript. See above on how to auto refresh an image on a web page using Javascript. If there is an image you wa ...

Bookmarklet To Enable Right Click On Web Page

... click context menu can be frustrating and annoying, especially if you want to view the source code or inspect the various elements that make up the web page. Fortunately re-enabling the ability to ri ...
Question ❔
Back to Top
S
H
A
R
E