I have uploaded my website on live server from localhost in magento
and when i m writing the url e.g: http://unbeatablewatches.com it is redirecting to localhost/unbeata
It was the same problem, fixed by changing in the database WHERE path='web/secure/base_url' AND path='web/unsecure/base_url'
set scope_id=0
and scope=default
besides defining the url
SELECT * FROM magcore_config_data WHERE path='web/secure/base_url'
SELECT * FROM magcore_config_data WHERE path='web/unsecure/base_url'