How To Remove PHP Extensions From Your Hostinger Website Using An Htaccess File

How To Remove PHP Extensions From Your Hostinger Website Using An Htaccess File
November 9, 2020 No Comments Tutorial rhalp10
Here's a basic guide to removing the .PHP extension from your hostinger-hosted website.
1. Go to your hosting panel.
2. Click File Manager
Image1
3. Open "public_html" folder
Image2
4. When you click the new file icon, a pop-up modal appears. Enter ".htaccess" and press the enter key.
Image3
Image4
5. Open the ".htaccess" file, copy and paste this configuration, and then click "save & close."
.htaccess
RewriteEngine on
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule !.*.php$ %{REQUEST_FILENAME}.php [QSA,L] 
Tags
About The Author
0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x