I've made a website using html and uploaded it to cpanel, it was working fine on the preview but now that I have activated the nameservers and made it available for anyone to see, the links to other pages like "contact us" and "about" no longer work.

I've checked the urls in the html and it's all correct, even renamed the pages and changed the urls to match and nothing has worked so far, I just get 404 errors. Would be really grateful for any help.

This is the code for links on the homepage:

     <a href="/home/cpanelUsername/public_html/about.html">About</a>
  • if the website is live can you link to it as it's a lot easier to troubleshoot that way. unfortunately there isn't a lot we can do with the information provided :/ Mar 10 '16 at 16:13
  • @DavidGolding Hi, thanks for the response, actually think I have just found the solution, will check now and get back to you Mar 10 '16 at 16:15
  • Please could you add some code?
    – Burgi
    Mar 10 '16 at 16:30
  • @Burgi so the links I have on the homepage are like this in html: <li><a href="/home/cpanelUsername/public_html/about.html">About</a></li> and the file structure on cpanel is is the same, I've tried adding subdomains but that didn't work either, thanks! Mar 10 '16 at 16:41
  • @DavidGolding wouldn't let me add you in the comment Mar 10 '16 at 16:41

Your links are incorrect.

From the end user's point of view every folder above /public_html/ is invisible and cannot be accessed through normal operation.

You should try the following:

   <a href="about.html">About</a>

The web server will search the current directory looking for a file called about.html and link to that.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.