Hide page extensions in URLs
- me.prosenjeet
-
- Posts: 1267
- Joined: Mon Dec 24, 2007 1:50 pm
- Location: Lucknow
- Contact:
Hide page extensions in URLs
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
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
Check my WB Extensions
Check my WB Templates
---------------------------------------------------------
www.Lucknowwebs.com
Re: Hide page extensions in URLs
Thank You
Re: Hide page extensions in URLs
TNX 4 mail & index is updated mate . .
- madebyibloo
-
- Posts: 366
- Joined: Fri Mar 27, 2009 3:58 pm
- Location: East Yorkshire, United Kingdom
- Contact:
Re: Hide page extensions in URLs
Hey me, Great idea! Thanks alot!
Cheers,
Scott
Cheers,
Scott
Cheers,
Scott
www.madebyibloo.com - a creative design studio.
Scott
www.madebyibloo.com - a creative design studio.
Re: Hide page extensions in URLs
Thank you,
This makes the site looks like a pro one.
This makes the site looks like a pro one.
- me.prosenjeet
-
- Posts: 1267
- Joined: Mon Dec 24, 2007 1:50 pm
- Location: Lucknow
- Contact:
Re: Hide page extensions in URLs
SUB wrote:Hey me, Great idea! Thanks alot!
Cheers,
Scott
morgan wrote:Thank You
Islander wrote:Thank you,
This makes the site looks like a pro one.
Good to know you find the extension useful
Check the new Chat GPT and Malware detect extensions at the link below
Check my WB Extensions
Check my WB Templates
---------------------------------------------------------
www.Lucknowwebs.com
Check my WB Extensions
Check my WB Templates
---------------------------------------------------------
www.Lucknowwebs.com
- me.prosenjeet
-
- Posts: 1267
- Joined: Mon Dec 24, 2007 1:50 pm
- Location: Lucknow
- Contact:
Re: Hide page extensions in URLs
Drag the extension on any one of the page of your project and then upload as "upload all"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!
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
Check my WB Extensions
Check my WB Templates
---------------------------------------------------------
www.Lucknowwebs.com
- Patrik iden
-
- Posts: 479
- Joined: Wed Mar 24, 2010 9:07 pm
- Location: Sweden
Re: Hide page extensions in URLs
Hi, do i add this extention on every page or can i just add it in masterpage?
- me.prosenjeet
-
- Posts: 1267
- Joined: Mon Dec 24, 2007 1:50 pm
- Location: Lucknow
- Contact:
Re: Hide page extensions in URLs
On any one of your pagesPatrik iden wrote:Hi, do i add this extention on every page or can i just add it in masterpage?
Check the new Chat GPT and Malware detect extensions at the link below
Check my WB Extensions
Check my WB Templates
---------------------------------------------------------
www.Lucknowwebs.com
Check my WB Extensions
Check my WB Templates
---------------------------------------------------------
www.Lucknowwebs.com
Re: Hide page extensions in URLs
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.
#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
Thank for the extension.
I think its not working, the page extensions still showing
htacess is inside the root folder on my ftp.
Joe
I think its not working, the page extensions still showing
htacess is inside the root folder on my ftp.
Joe
- me.prosenjeet
-
- Posts: 1267
- Joined: Mon Dec 24, 2007 1:50 pm
- Location: Lucknow
- Contact:
Re: Hide page extensions in URLs
I think I wrote this earlier...
This extension doesnt hide extensions as such!
Once this extension is installed....
a link
can also be reached through
So the page is now reachable via both the links.
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
Check the new Chat GPT and Malware detect extensions at the link below
Check my WB Extensions
Check my WB Templates
---------------------------------------------------------
www.Lucknowwebs.com
Check my WB Extensions
Check my WB Templates
---------------------------------------------------------
www.Lucknowwebs.com