Remove .html extension!

Status
Not open for further replies.

friendus50

New Member
Messages
25
Reaction score
0
Points
0
How can i remove .html extention from my website page and make them like example.com/featured intead of example.com/featured.html
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
1. Create and store your files with the .html extension

2. Create your links without the .html extension

3. Add the following to your .htaccess file in public_html:

Code:
RewriteEngine on
RewriteBase /

RewriteCond  %{REQUEST_FILENAME} !-d
RewriteCond  %{REQUEST_FILENAME} !-f
RewriteCond  %{REQUEST_FILENAME}.html -f
RewriteRule  (.*)  $1.html [L]
 
Status
Not open for further replies.
Top