Jump to content

SEO Friendly URL's causing design issues


Recommended Posts

Link to comment
Share on other sites

In the <head> section of your main.php template, you have this:

<link media="all" href="Styles/global-en.css" type="text/css" rel="stylesheet">


The browser gets a page from an adress such as:



The browser does not know where the actual path to CubeCart ends and the SEF path begins.


When a link is a "relative" link, that is, when a link does not start with a slash, or does not start with a full URL, the browser will use what it thinks is the path to where the file is located. That is typically the complete path the page came from, starting at 'towelsoft' and ending at children-s-bathrobes. The browser asks for the file where in 'children-s-bathrobes', there is a folder named 'Styles' and then the actual file 'global-en.css'.


When using SEO mode, where "fake" paths are appended to the real path, you must use full URLs. Try making the link look like this:

<link media="all" href="{$STORE_URL}/styles/global-en.css" type="text/css" rel="stylesheet">
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...