Styles not loading in magento due to wrong url path and how to solve this !

The problem describe below

I have installed magento on my local system, everything is working fine except that the styles are not loading..

I observed that the problem was due to incorrect style sheet url when the request is being sent (found using net in firebug)..


The request url:

The request url should be: 


To solve this problem, you can step by step check following\

1, Make sure the ownership of media and var directories to www-data instead of another unix username and giving those folders full permissions.

2, Set Merge CSS Files to “No” in System Configuration -> Advanced -> Developer -> CSS Settings


I'm 26 years old, a web developer from Nha Trang, Viet Nam. I love travelling and listen to rock music all day. This site is where I share my knowledges, my moments and some stuff...Wanna drink some beer? Feel free to contact me at the footer.