how to create unique url
Posted by: w14mv92 (---.dyn.novuscom.net)
Date: August 23, 2010 03:36AM

Hello,

My project is contained in [localhost]

The problem is that when I have relative links on my web pages (like: /content/index.html ) , the link goes to the root localhost, of course, and outside of my project.

How can I create a url like [mysite] so that when I reference: /content/index.html it will be correct.

I tried editing the host file:
127.0.0.1 mysite
but that just maps 'mysite' to 'localhost' which doesn't help for links like the ones above.

Can anyone help?

Thank you.

Options: ReplyQuote
Re: how to create unique url
Posted by: yfastud (Moderator)
Date: August 23, 2010 04:47AM

You need to setup Access, DNS, and VH; Access for permission to connect to your Wamp PC, DNS to tie Domain(s) to your Wamp PC, and VH to host multiple Domains/Websites/IP's and even you have only 1 Domain/IP, you should use VH to set it up w/ the site you want to show up first on top and localhost on bottom and others in middle if having more than 1 site; w/ VH, other PC's, no matter w/i or outside LAN, can access/see websites/contents on your wamp PC. If dont have real Domain, just skip DNS guide

To setup Access, follow this
[blog.jlbn.net]

To setup VH, follow this
[blog.jlbn.net]

To setup DNS, follow this
[blog.jlbn.net]

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote
Re: how to create unique url
Posted by: w14mv92 (---.dyn.novuscom.net)
Date: August 23, 2010 05:01AM

Thank you. The virtual host (VH) article was what I required. I have successfully set up what I required.

Thanks again.

Options: ReplyQuote


Sorry, only registered users may post in this forum.