Change "Base URL" in Magento ver. 1.6.1.0

I’m used JM Deco in Magento ver. 1.6.1.0. After Install JM Deco, I found problem how to change "Base URL" from http://www.domain.com/magento to http://www.domain.com.

I’ve tried changing the "Base URL" in the Magento Admin Panel -> Configuration -> General -> Web -> UnSecure/Secure -> Base URL, and then delete all files in the cache /var/cache/ over cPanel File Manager.

After doing the above, I can’t relogin into the Magento Admin Panel. Is this a bug? please advice. Thank You

Regards,
Yd

7 answers

Profile photo of chavan 100.00 $tone June 18, 2012
Public

No you need to do this in Database.

Go to this table ‘core_config_data’

Step 1:
Run this Query :

Code:

SELECT  * FROM  `core_config_data` WHERE  `path`  LIKE  'web/unsecure/base_url'

you will find your Url in ‘value’ field , Edit this to New Url

Step 2:
Run this Query :

Code:

SELECT  * FROM  `core_config_data` WHERE  `path`  LIKE  'web/secure/base_url'

you will find your Url in ‘value’ field , Edit this to New Url

then delete all files in the cache /var/cache/ over cPanel File Manager.

Thats it, you are ready to Go

Note: If you Find my Post useful please click on the Thanks Icon

#1
Profile photo of chavan 100.00 $tone June 18, 2012
Public

There you will Find a similar code like this

Code:

 <admin>
        <routers>
            <adminhtml>
                <args>
                    <frontName><![CDATA[admin]]></frontName>
                </args>
            </adminhtml>
        </routers>
    </admin>

Replace admin with your Folder Name here "<![CDATA[admin]]>"

If this did not work please share your attach your table "core_config_data"

Note: If you Find my Post useful please click on the Thanks Icon

#3
Profile photo of chavan 100.00 $tone June 18, 2012
Public

you need to copy all the files in the magento folder of your to root

/magento/ to /

you got it.

This is the Fix for you. No need any database tables…..

Note: If you Find my Post useful please click on the Thanks Icon

#6

This question is now closed

Written By

Comments