Hide page extensions in URLs

In this section you can share self-made extensions with other users of WYSIWYG Web Builder.

There are already more than 250 extensions available!
Post Reply
User avatar
me.prosenjeet
 
 
Posts: 1251
Joined: Mon Dec 24, 2007 1:50 pm
Location: Lucknow
Contact:

Hide page extensions in URLs

Post by me.prosenjeet » Mon Mar 21, 2011 1:54 pm

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

User avatar
morgan
 
 
Posts: 102
Joined: Fri Jan 04, 2008 12:35 am
Location: Dorset UK
Contact:

Re: Hide page extensions in URLs

Post by morgan » Mon Mar 21, 2011 11:22 pm

Thank You :D

jordan
 
 
Posts: 837
Joined: Tue Jun 26, 2007 1:56 pm
Contact:

Re: Hide page extensions in URLs

Post by jordan » Wed Mar 23, 2011 2:47 pm

TNX 4 mail & index is updated mate . 8) .

User avatar
madebyibloo
 
 
Posts: 379
Joined: Fri Mar 27, 2009 3:58 pm
Location: East Yorkshire, United Kingdom
Contact:

Re: Hide page extensions in URLs

Post by madebyibloo » Sat Mar 26, 2011 11:39 am

Hey me, Great idea! Thanks alot!





Cheers,
Scott
Cheers,
Scott


creating the new, together.

User avatar
Islander
 
 
Posts: 62
Joined: Tue Jan 12, 2010 4:03 pm
Location: Mauritius
Contact:

Re: Hide page extensions in URLs

Post by Islander » Sun Mar 27, 2011 2:35 pm

Thank you,

This makes the site looks like a pro one.

User avatar
me.prosenjeet
 
 
Posts: 1251
Joined: Mon Dec 24, 2007 1:50 pm
Location: Lucknow
Contact:

Re: Hide page extensions in URLs

Post by me.prosenjeet » Sun Mar 27, 2011 3:53 pm

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

User avatar
me.prosenjeet
 
 
Posts: 1251
Joined: Mon Dec 24, 2007 1:50 pm
Location: Lucknow
Contact:

Re: Hide page extensions in URLs

Post by me.prosenjeet » Sun Mar 27, 2011 3:57 pm

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

User avatar
Patrik iden
 
 
Posts: 559
Joined: Wed Mar 24, 2010 9:07 pm
Location: Sweden

Re: Hide page extensions in URLs

Post by Patrik iden » Wed Apr 06, 2011 10:53 am

Hi, do i add this extention on every page or can i just add it in masterpage?

User avatar
me.prosenjeet
 
 
Posts: 1251
Joined: Mon Dec 24, 2007 1:50 pm
Location: Lucknow
Contact:

Re: Hide page extensions in URLs

Post by me.prosenjeet » Wed Apr 06, 2011 1:16 pm

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

borges
 
 
Posts: 26
Joined: Mon Jan 17, 2011 5:12 pm

Re: Hide page extensions in URLs

Post by borges » Sat Apr 16, 2011 2:47 pm

Thank you for this extension.
I followed the procedures, but it still shows the page extensions.. htacess is present on ftp.

User avatar
Islander
 
 
Posts: 62
Joined: Tue Jan 12, 2010 4:03 pm
Location: Mauritius
Contact:

Re: Hide page extensions in URLs

Post by Islander » Mon Apr 18, 2011 3:56 pm

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.

User avatar
stamjoe
 
 
Posts: 246
Joined: Sat Feb 09, 2008 10:32 am
Location: GREECE

Re: Hide page extensions in URLs

Post by stamjoe » Tue Apr 19, 2011 12:59 pm

Thank for the extension.
I think its not working, the page extensions still showing
htacess is inside the root folder on my ftp.
Joe

User avatar
me.prosenjeet
 
 
Posts: 1251
Joined: Mon Dec 24, 2007 1:50 pm
Location: Lucknow
Contact:

Re: Hide page extensions in URLs

Post by me.prosenjeet » Fri Apr 22, 2011 2:13 pm

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests