Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Moving /magento to root directory - PROBLEMS
 
Lies
Member
 
Total Posts:  58
Joined:  2008-05-07
 

Hi community,

I moved my /magento to the root directory but I still have some issues. First I cannot log in to admin panel and images are not showing up correctly.

Its not a .htaccess files issue cause I moved them to the root directory after I did set “show hidden files” trough my ftp client. I don’t have any idea from where to start, will appreciate any help.

Thanks.

 
Magento Community Magento Community
Magento Community
Magento Community
 
nikefido
Guru
 
Avatar
Total Posts:  481
Joined:  2008-07-11
New Haven, CT
 

check your app/etc/config.xml file and change the local URL to point to your root directory -it will probably say something like:

<unsecure>
                    <
base_url>{{base_url}}</base_url>
                    <
base_link_url>{{unsecure_base_url}}</base_link_url>
                    <
base_web_url>{{unsecure_base_url}}</base_web_url>
                    <
base_skin_url>{{unsecure_base_url}}skin/</base_skin_url>
                    <
base_js_url>{{unsecure_base_url}}js/</base_js_url>
                    <
base_media_url>{{unsecure_base_url}}media/</base_media_url>
                </
unsecure>

                <
secure>
                    <
base_url>{{base_url}}</base_url>
                    <
base_web_url>{{secure_base_url}}</base_web_url>
                    <
base_link_url>{{secure_base_url}}</base_link_url>
                    <
base_js_url>{{secure_base_url}}js/</base_js_url>
                    <
base_skin_url>{{secure_base_url}}skin/</base_skin_url>
                    <
base_media_url>{{secure_base_url}}media/</base_media_url>
                </
secure>

Change these to your correct addresses.
aka:

http://www.yoursite.com (where it used to be http://www.yoursite.com/magento, now you’re forcing it to read http://www.yoursite.com).

 
Magento Community Magento Community
Magento Community
Magento Community
 
Lies
Member
 
Total Posts:  58
Joined:  2008-05-07
 

Hi thanks for your reply, what shown above is exactly what I have in my config.xml file but how to configure this ?

I did some changes trough the admin panel for unsecure and secure URL, before moving my sub-directory to the root directory. I have put my main url http://www.domai.com

Let me know

Thanks.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Lies
Member
 
Total Posts:  58
Joined:  2008-05-07
 

example do I have to put my root directory URL in place of {{unsecure_base_url}}, like {{http://www.mysite.com}}

Let me know

Thanks for your help

 
Magento Community Magento Community
Magento Community
Magento Community
 
nikefido
Guru
 
Avatar
Total Posts:  481
Joined:  2008-07-11
New Haven, CT
 

example:

<base_link_url>http://www.mysite.com</base_link_url>

Let me know how this works out for you, as I have to do a similar move myself soon.

EDIT: Ignore the orange in that code - it’s changing ‘//’ to a php comment

 
Magento Community Magento Community
Magento Community
Magento Community
 
Lies
Member
 
Total Posts:  58
Joined:  2008-05-07
 

Hi,

Yes worked like a charm, from config.xml and admin panel.

Thank for your help.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top