Jump to content

Shorten URL?


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 post
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 post
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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...