3 Replies - 533 Views - Last Post: 04 December 2012 - 02:38 PM

#1 Leonardjesse  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 28-October 12

Creating A Link

Posted 03 December 2012 - 07:35 AM

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

Is This A Good Question/Topic? 0
  • +

Replies To: Creating A Link

#2 no2pencil  Icon User is offline

  • Toubabo Koomi
  • member icon

Reputation: 5316
  • View blog
  • Posts: 27,220
  • Joined: 10-May 07

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.
Was This Post Helpful? 0
  • +
  • -

#3 Kruithne  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 99
  • View blog
  • Posts: 442
  • Joined: 28-July 09

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?
Was This Post Helpful? 1
  • +
  • -

#4 roweneil1  Icon User is offline

  • New D.I.C Head

Reputation: 3
  • View blog
  • Posts: 12
  • Joined: 17-October 12

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:

<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.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1