[Tut]Removing File extension from URL[.htaccess]

Status
Not open for further replies.

Legion

Gaming Lord
Staff member
Nov 23, 2011
1,801
669
Say you have ( ) and you want it to say ( )
Well, here is how to do that.

Just add this to your .htaccess
Code:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.html -f
RewriteRule ^(.*)$ $1.html

No credits to me. Just a simple .htaccess tool
You can also just change .html to whatever extention (php,html, ect.)
 

Kaz

BooYah
Staff member
Nov 16, 2010
3,064
1,025
Nice little tut.
Its very simple & more often than not, people actually want to remove the extension
 

Sledmore

Chaturbate Livestreamer
Staff member
FindRetros Moderator
Jul 24, 2010
5,195
3,906
Nice tutorial, many people do this nowadays, good share :p.
 
Status
Not open for further replies.

Users who are viewing this thread

Top