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.

  • Like 1
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

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.   Restore formatting

  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.

×
×
  • 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.