Community
All Features
Overview of all exisiting features.
Arcade
Play various games in the arcade.
Awards
Earn awards for different tasks.
Bug Tracker
Report site related bugs the right way.
Credits
Everything related to credits.
Groups
A list of user run groups you can join.
Help Center
Official regulations and help documents.
Member List
A list of all registered members.
Latest Announcements
Staff Recruitment | September 2022
Changelog #34 - 03/04/2022
April Update - Index Redesign and Unlock Content Experiment
Support
Shop
Upgrade
Log In
Create Account
NulledBB
General
Technology & Development
Website Construction
how to remove .php .html from link
Create an account
Login
PrivateAlps.net - Offshore Cloud Services | VPS/RDP/VPN - Dedicated Servers - Webhosting - TOR Services - Auto Deploy
ADULTSLAYER.STORE 💎 #1 PORN SHOP | 700+ Hot Products: Brazzers, Teamskeet, Pornhub, NaughtyAmerica, Many More! | 💸 Secure PayPal & Card Payments | Satisfaction Guaranteed! 🔥
Website Construction
how to remove .php .html from link
Submitted by Pretinhoa,
29-10-2019, 07:37 AM
, Thread ID: 148221
Thread Closed
Reply
RE: how to remove .php .html from link
29-10-2019, 07:44 AM
#2
if you are wanting to remove php or html from a url using htaccess then insert this code
##remove php from url
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.php [NC,L]
##remove html from url
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.html [NC,L]
After entering this on your htaccess you can then serve pages without the extension.
For example with href tyou can simply use no file extension like below
<a href="http://example.com/wallpaper" title="wallpaper">wallpaper</a>
if you are hosting with godaddy and a few other hosts you made need to use multiviews
Options +MultiViews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.php [NC,L]
More
1
Pretinhoa
Users browsing this thread: 1 Guest(s)