I'm working on a project, I've designed a joomla website in a seperate folder named voting and I developed another site in anothe folder named comssa. All foldes mentioned above are in my C: directory, in a folder called wanp, in another folder called www. Normaly if I wana access the voting site, I just type http://localhost/voting in my web browser, and it loads successfully. My problem now is, I created a link from one of the page in my site at comssa folder to access the voting site. So I created this link in a file called home.html as followed <a href="c:\wamp\www\voting>CLICK HERE TO VOTE</a> but it ain't loading. Someone help me out, it's urgent
Creating A Link
Page 1 of 13 Replies - 365 Views - Last Post: 04 December 2012 - 02:38 PM
Replies To: Creating A Link
#2
Re: Creating A Link
Posted 03 December 2012 - 07:37 AM
http://localhost will be relative to the root folder for the site. However neither that nor the file link of C:\wamp\www\voting are going to be accessibile from outside of your network.
Also I'm not sure how we can help you create a link, or what you are really asking for help with.
Also I'm not sure how we can help you create a link, or what you are really asking for help with.
#3
Re: Creating A Link
Posted 03 December 2012 - 07:37 AM
I'm afraid we'll need a little more to work with that than "but it ain't loading". How is it not loading? Did a large flock of pink elephants suddenly show up?
#4
Re: Creating A Link
Posted 04 December 2012 - 02:38 PM
You don't need to put the full directory address, just the location within the server. Basically, you could use either of the following:
Or you could do this:
In the second option, the ../ basically goes back one folder. So doing ../ on it's own would take you to the www directory.
<a href = "http://localhost/voting">CLICK TO VOTE</a>
Or you could do this:
<a href = "../voting/">CLICK TO VOTE</a>
In the second option, the ../ basically goes back one folder. So doing ../ on it's own would take you to the www directory.
Page 1 of 1
|
|

New Topic/Question
Reply


MultiQuote





|