permalink issues when adding a prefix

By gregThomas - August 19, 2014

Hi willydoit,

The problem is that the links to your style sheets are relative and not absolute. This article gives you an overview of the difference between the two:

http://www.coffeecup.com/help/articles/absolute-vs-relative-pathslinks/

An absolute file path starts with a / or http:// / https:// and the browser assumes that the file path starts from the base of the site, no matter what the current directory is. An example of an absolute file path would be:

<link rel="stylesheet" href="/Site/styles/twitter-bootstrap/bootstrap.css">

or:

<link rel="stylesheet" href="http://example.com/Site/styles/twitter-bootstrap/bootstrap.css">

You current have the path set up to be relative:

<link rel="stylesheet" href="../Site/styles/font-awesome/css/font-awesome.css"/>

So your browser looks at the current URL:

mywebsite.com/news/article name/

then is trying to looking for the URL path:

mywebsite.com/news/Site/styles/font-awesome/css/font-awesome.css

So you just need to change the URL path for your CSS sheets to there absolute values. 

Let me know if you have any questions.

Thanks!

Greg

Greg Thomas







PHP Programmer - interactivetools.com

By willydoit - August 20, 2014

HI Greg,

thanks for taking the time to explain this, I have managed to go through the site and change the links to absolute and so far this seems to have resolved the issues.