If you have installed magento in a wrong directory or You’ve had magento installed on a temporry directory or een you want to change your directory or if you want to change mageno installation domain to alternative one you can follow the following instructions:
let say your current installation URL is:
and you want to alter it to
if you have cpanel and the standard directory position is
and you current magento installation directory must be in here
go to THe Magento admin area
from the top left drop down menu choose the System
then Configuration
and then Web simply would be
System -> Configuration -> Web
after that click on the Unsecure tab to expnd it and now what you need to do is to simply edit
Base URL Item to what else you want to change to
THanks
Voshka Niknam