website transfer and all relative paths not working

Avatar
  • Answered
css not getting found, javascript file not found, yet when I make the paths absolute, all works fine. Is this something that only exists in the temporary url or do I need to change all paths throughout my entire site to have things work on inmotion? In any even, do I I have to change all the paths to absolute to test the workability of my site on these different servers? That's a lot of effort and time just to test or to make it work. Please advise if there's a workaround here.
Avatar
Tim S.
Hi LeslieL, Thanks for posting your question. I've looked over your website and the relative paths seem to be set incorrectly. Here's the example of the relative path to your CSS file:

<link href="../css2010-1.css" rel="stylesheet" type="text/css"/>

It should be:

<link href="css2010-1.css" rel="stylesheet" type="text/css"/>

I copied your pages code, and created a test page called "test.html" in your public_html folder. I changed the paths to the CSS and JS files by removing the ../ and it displays correctly. I hope this helps! If you need further assistance please feel free to contact us. Thanks! Tim S