Page 1 of 1

Hide page extensions in URLs

Posted: Mon Mar 21, 2011 1:54 pm
by me.prosenjeet
Hide page extensions in URLs

This is a way to remove page extensions from your website URLs.
For example if your site link is-
http://lucknowwebs.com/page.php
it will now look
http://lucknowwebs.com/page

There are a bunch of reasons you'd want to do this, mainly:

1) It looks cleaner and easier to read and remember
2) By using search-engine–friendly URLs, you're Google PageRank will increase and will increase your website's findability
3) It makes your website environment-independent, so if you ever decide to change the technology your site uses, everything would appear seamless to your visitors.

This applies to html, htm, asp, aspx,php and shtml

The best part is, you can still access the page with .php (or any extension) on the end of it, so no old incoming links or bookmarks become orphaned as a result of this, and everyone is happy!

Details & Download here:
http://lucknowwebs.com/hide-page-extensions-in-urls/

Caution: This uses .htaccess, go through the 'readme' file before using this extension

Re: Hide page extensions in URLs

Posted: Mon Mar 21, 2011 11:22 pm
by morgan
Thank You :D

Re: Hide page extensions in URLs

Posted: Wed Mar 23, 2011 2:47 pm
by jordan
TNX 4 mail & index is updated mate . 8) .

Re: Hide page extensions in URLs

Posted: Sat Mar 26, 2011 11:39 am
by madebyibloo
Hey me, Great idea! Thanks alot!





Cheers,
Scott

Re: Hide page extensions in URLs

Posted: Sun Mar 27, 2011 2:35 pm
by Islander
Thank you,

This makes the site looks like a pro one.

Re: Hide page extensions in URLs

Posted: Sun Mar 27, 2011 3:53 pm
by me.prosenjeet
SUB wrote:Hey me, Great idea! Thanks alot!
Cheers,
Scott
morgan wrote:Thank You :D
Islander wrote:Thank you,

This makes the site looks like a pro one.

Good to know you find the extension useful :D

Re: Hide page extensions in URLs

Posted: Sun Mar 27, 2011 3:57 pm
by me.prosenjeet
randyboerboom wrote:After installing the extension in your WB7 toolbar, do you place this on every webpage before it to work?

I placed it on all my pages and published my website, but the extension is still showing. My server is supporting htaccess, but when I look at the files on the server, there's no htaccessfile.

THX!
Drag the extension on any one of the page of your project and then upload as "upload all"
You will not see the htaccess file unless you check on "show hidden files" on your server

Re: Hide page extensions in URLs

Posted: Wed Apr 06, 2011 10:53 am
by Patrik iden
Hi, do i add this extention on every page or can i just add it in masterpage?

Re: Hide page extensions in URLs

Posted: Wed Apr 06, 2011 1:16 pm
by me.prosenjeet
Patrik iden wrote:Hi, do i add this extention on every page or can i just add it in masterpage?
On any one of your pages

Re: Hide page extensions in URLs

Posted: Mon Apr 18, 2011 3:56 pm
by Islander
I also tried it but without success. There following code effectively gets included in the htaccess file:

#WB extension by http://lucknowwebs.com
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php
RewriteCond %{REQUEST_FILENAME}\.html -f
RewriteRule ^(.*)$ $1.html
RewriteCond %{REQUEST_FILENAME}\.htm -f
RewriteRule ^(.*)$ $1.htm
RewriteCond %{REQUEST_FILENAME}\.asp -f
RewriteRule ^(.*)$ $1.asp
RewriteCond %{REQUEST_FILENAME}\.aspx -f
RewriteRule ^(.*)$ $1.aspx
RewriteCond %{REQUEST_FILENAME}\.shtml -f
RewriteRule ^(.*)$ $1.shtml
#WB extension by http://lucknowwebs.com


However no effect on the URL display is currently happening.

Re: Hide page extensions in URLs

Posted: Tue Apr 19, 2011 12:59 pm
by stamjoe
Thank for the extension.
I think its not working, the page extensions still showing
htacess is inside the root folder on my ftp.
Joe

Re: Hide page extensions in URLs

Posted: Fri Apr 22, 2011 2:13 pm
by me.prosenjeet
I think I wrote this earlier...
This extension doesnt hide extensions as such!
Once this extension is installed....
a link

Code: Select all

http://lucknowwebs.com/contact.php

can also be reached through

Code: Select all

http://lucknowwebs.com/contact
So the page is now reachable via both the links.