Hide page extensions in URLs

In this section you can share self-made extensions with other users of WYSIWYG Web Builder.
There is a dedicated section for commercial extensions.
Post Reply
User avatar
me.prosenjeet
 
 
Posts: 1265
Joined: Mon Dec 24, 2007 1:50 pm
Location: Lucknow
Contact:

Hide page extensions in URLs

Post 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
Check the new Chat GPT and Malware detect extensions at the link below

Check my WB Extensions
Check my WB Templates
---------------------------------------------------------
www.Lucknowwebs.com
User avatar
morgan
 
 
Posts: 100
Joined: Fri Jan 04, 2008 12:35 am
Location: Dorset UK
Contact:

Re: Hide page extensions in URLs

Post by morgan »

Thank You :D
jordan
 
 
Posts: 831
Joined: Tue Jun 26, 2007 1:56 pm
Contact:

Re: Hide page extensions in URLs

Post by jordan »

TNX 4 mail & index is updated mate . 8) .
User avatar
madebyibloo
 
 
Posts: 371
Joined: Fri Mar 27, 2009 3:58 pm
Location: East Yorkshire, United Kingdom
Contact:

Re: Hide page extensions in URLs

Post by madebyibloo »

Hey me, Great idea! Thanks alot!





Cheers,
Scott
Cheers,
Scott


www.madebyibloo.com - a creative design studio.
User avatar
Islander
 
 
Posts: 54
Joined: Tue Jan 12, 2010 4:03 pm
Location: Mauritius
Contact:

Re: Hide page extensions in URLs

Post by Islander »

Thank you,

This makes the site looks like a pro one.
User avatar
me.prosenjeet
 
 
Posts: 1265
Joined: Mon Dec 24, 2007 1:50 pm
Location: Lucknow
Contact:

Re: Hide page extensions in URLs

Post 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
Check the new Chat GPT and Malware detect extensions at the link below

Check my WB Extensions
Check my WB Templates
---------------------------------------------------------
www.Lucknowwebs.com
User avatar
me.prosenjeet
 
 
Posts: 1265
Joined: Mon Dec 24, 2007 1:50 pm
Location: Lucknow
Contact:

Re: Hide page extensions in URLs

Post 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
Check the new Chat GPT and Malware detect extensions at the link below

Check my WB Extensions
Check my WB Templates
---------------------------------------------------------
www.Lucknowwebs.com
User avatar
Patrik iden
 
 
Posts: 479
Joined: Wed Mar 24, 2010 9:07 pm
Location: Sweden

Re: Hide page extensions in URLs

Post by Patrik iden »

Hi, do i add this extention on every page or can i just add it in masterpage?
User avatar
me.prosenjeet
 
 
Posts: 1265
Joined: Mon Dec 24, 2007 1:50 pm
Location: Lucknow
Contact:

Re: Hide page extensions in URLs

Post 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
Check the new Chat GPT and Malware detect extensions at the link below

Check my WB Extensions
Check my WB Templates
---------------------------------------------------------
www.Lucknowwebs.com
User avatar
Islander
 
 
Posts: 54
Joined: Tue Jan 12, 2010 4:03 pm
Location: Mauritius
Contact:

Re: Hide page extensions in URLs

Post 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.
User avatar
stamjoe
 
 
Posts: 230
Joined: Sat Feb 09, 2008 10:32 am
Location: GREECE

Re: Hide page extensions in URLs

Post 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
User avatar
me.prosenjeet
 
 
Posts: 1265
Joined: Mon Dec 24, 2007 1:50 pm
Location: Lucknow
Contact:

Re: Hide page extensions in URLs

Post 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.
Check the new Chat GPT and Malware detect extensions at the link below

Check my WB Extensions
Check my WB Templates
---------------------------------------------------------
www.Lucknowwebs.com
Post Reply