Friday, December 30, 2011

How to remove web pages extension?

Leave a Comment
Learn how to hide the web pages extension such as .html, .php, .asp, etc..with this short .htaccess code




ingredients:

1 htaccess

insert this code to your .htaccess
******************************************************
RewriteEngine On
RewriteRule ^index$ index.php [L]
*****************************************************

see? this article assumes that your index.php is on root directory
then try to go to your site ex: http://example.com/index

you can also change your webpage extension to any extension you wish
ex:


insert this code to your .htaccess
******************************************************
RewriteEngine On
RewriteRule ^index.ext$ index.php [L]
*****************************************************

as you can see we changed "index.php" to "index.ext"
just try to experiment:) and learn from your MISTAKES..lol

0 comments:

Post a Comment