On the Joomla forums a number of people are reporting problems with having links to CSS and other URLs showing a double forwardslash // in their code. The same issue also arises on the Mambo forums, and here is the fix.
Look in your template code (index.php)for any entry that reads like this:
php echo $mosConfig_live_site;?>/
Remove the / after $mosConfig_live_site;?>
$mosConfig_live_site; already outputs the forward slash into your code, so the second one is where you are getting the duplicate.
For example,
This will return the link to the css as
http://example.com//templates/css/template_css.css
Take that duplicate forwardslash out and the problem is fixed!
NOTE: $mosConfig_live_site is a global variable which is set in the configuration.php file. You should never add a trailing slash to either $mosConfig_live_site or $mosConfig_absolute_path in your global configuration.
If you enjoyed this post, make sure you subscribe to my RSS feed!













