After upgrading my magento site from 1.8.1.0 to 1.9.2.2 some css file path within head tag was set wrong. I found out that getCssJsHtml() function was returning absolute path to the css files(/home/username/public_html/skin/..../style.css) instead of correct url(http://siteurl/skin/..../style.css). So I manually changed the getCssJsHtml() function in app\code\core\Mage\Page\Block\Html\Head.php Now the css path is ok but I want to know, what's the reason for this issue and is there any smarter way to fix this?
well
System => Configuration => Web
The main point to watch out for is
i. Url options -> Add store code to Urls should be 'No'
ii. Unsecure -> Base Url should point to your own domain e.g http://mycommerce.com/
iii. Secure -> Base Url should point to your own domain e.g http://mycommerce.com/
also you should have
{{unsecure_base_url}}skin/
for your Base Skin