My links are not working. What is wrong?

First of all, check that the link is correctly spelled, and that the correct case is used - INDEX.HTML is not the same as index.html.

Next, check the file paths. A common error is to leave the location relative to another computer's filesystem, eg:-

<a href="C:\Documents\MySite\mysite.html">Link</a>

This is incorrect as it refers to a file on your PC, not on our servers. File paths should either be absolute, eg:-

<a href="http://mysite.com/mysite.html">Link</a>

or relative, eg:-

<a href="mysite.html">Link</a>, if mysite.html is in the same directory as the page that it's linking from.

Finally, check that there are no conflicts with other scripts on the site. Many major CMS's such as Wordpress and Joomla use URL rewriting that will interfere with the correct operation of links.

  • 87 Users Found This Useful
Was this answer helpful?

Related Articles

When I try and view my website I get an HTTP Error 403 - Forbidden message.

A '403 Forbidden' message means that the browser has requested a page that it is not permitted to...

My CGI/ASP/PHP script is giving an error when trying to write to a file.

This applies to Linux hosting accounts only.This is almost certainly down to incorrect...

A custom filetype isn't being recognised, how can I make sure it is?

You can force this through using a '.htaccess' file. Remember that the directives inside an...

My CGI/Perl scripts are failing with error 500 (Internal Server Error)

These errors are nearly always related to a coding error within the script, or bad variables...

I can't see the images on my website. Why?

There are several possible reasons why your images are not showing up on your pages as...