Jump to content

Shorten URL?


forchilli
 Share

Recommended Posts

I know there is a way of doing this. Most sites that you navigate to everyday, have this done to there URL's.My site now is "http://zakkforchilli.com/contact.html"what i want is "http://zakkforchilli.com/contact/"thats what i want to show up in the address bar. anyone know how exactly i would go about this ??thanks.[examples]http://pownce.com/zakkforchilli/ ISNT http://pownce.com/zakkforchilli.htmlhttp://myspace.com/username/ ISNT http://myspace.com/username.html

Link to comment
Share on other sites

Hi.. For that you have to code such that that can redirect the page automatically on desire page.. you have to 4 serverscript for this.. or you can go for rewrite rule from this you can make rules and redirect page..rewrite riles in apache..Something like below this:RewriteCond %{HTTP_HOST}/contactRewriteRule %{HTTP_HOST}/contact %{HTTP_HOST}/contact.html-Vijay

Link to comment
Share on other sites

Or you could just restructure your directories so that you have a structure ./contact/index.html where index.html was the previous contact.html, and then people could access ./contact/ to view your page. But then you would have to change your links.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...