Your script (TomatoCart ?) sets the links on the site. Instead of using relative urls (ie, like about.html or contact.php), it uses absolute urls (mysite.com/about.html, etc).
It uses a configuration setting that you should be able to adjust. Go to your script's admin area and look for...