Tuesday, May 31, 2011

How to change the names of links on your website?

I made a website usuing Dreamweaver, and you can look at it at



http://www.pianoplayinboy.com



My only concern is that I want to change the link names.



Ex. pianoplayinboy.com/sheetmusic.htm is what shows now;



pianoplayinboy.com/sheetmusic is what I want.How to change the names of links on your website?
dude you will need a lot of programming, just leave it like that.



I have a lot of experience on this and wont affect you on anything unless you really want to start programming in php or something else.





Norvell Abente

http://www.paraisocentenario.comHow to change the names of links on your website?
If you are using Linux, try adding this code to your .htaccess file:



RewriteEngine on

RewriteBase /



RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /[^.]+\.htm\ HTTP/

RewriteRule ^(.+)\.htm$ /$1 [R=301,L]



If you are using Windows, you might need to install ISAPI Filter for IIS.



- Ryan M., Support Engineer, http://www.HostMySite.com?utm_source=bb
If you are programming using PHP



you need to write a redirect code in .htaccess as following.



Options +FollowSymlinks

RewriteEngine on

RewriteRule ^(.*)\$ $1.htm [NC]



If you are using Dotnet



you need to add ISAPI filter in IIS.



also with the coding in global.asax and help of web.config file you can do it easily.

No comments:

Post a Comment