Jump to content

Hyperlink not working as it should be...


684425

Recommended Posts

The same thing in a site

<ul class="col-sm-2 col-sm-offset-2">
            <li><a href="/">Home</a></li>
            <li><a href="https://secure.payza.com/login">Log In</a></li>
            <li><a href="https://secure.payza.com/signup">Sign Up</a></li>
        </ul>

The site is online.

The reason why you are seeing the home page of localhost is because you're using "/" which represents the base folder or URL.

 

If you have this file saved in a sub folder and you're trying to do something like localhost/website, you need to add the website name after the / because HTTP will assume that you are looking for the main page of the URL which is localhost.

 

Again, this is not a PHP problem. This is an HTML problem.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.