Sunday, April 1, 2012

Magento Missing Slash For All Include Files

Problem:

Magento site displays content but no styling, javascript etc.  Stylesheets, javascript, and all other included files are missing a slash.

e.g. http://mywebsite.comjs/prototype/prototype.js

 

Solution:

In core_config_data table ensure entries with path = web/unsecure/base_url and web/secure/base_url have a trailing slash.

e.g. http://www.mywebsite.com/