top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

From where we can change the URL of admin in Magento?

+2 votes
631 views
From where we can change the URL of admin in Magento?
posted May 19, 2015 by Vrije Mani Upadhyay

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

2 Answers

0 votes
 
Best answer

First, open the local.xml configuration file in your favorite text editor, or use the Text Editor in the cPanel File Manager. The file is usually located in the app/etc/ directory under your Magento installation. Locate the following code segment:

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

Now, replace admin with your new admin path. This should be something personal which is hard to guess, use only letters or numbers - no special characters, then save the file.

The final step is to refresh your cache. Use an FTP client to delete the content of the var/cache/ directory, or use the following SSH command.

(First, navigate to you Magento root directory)

answer May 20, 2015 by Devyani
+1 vote

There are two ways to change the admin URL in magento. I will explain you both the way.

- Change the url from Admin Panel

  • In admin section go to System->Configuration
  • Then go to Advanced->Admin
  • Expand Admin Base Url
    (a) Set Use Custom Admin URL to “Yes.” Then, enter the Custom Admin URL in the following format:
    http://yourdomain.com/magento/
    Note: ** The admin URL must be in the same Magento installation, and have the same document root as the storefront.
    **(b)
    Set Custom Admin Path to “Yes.” Then, enter the name of the Custom Admin Path in the following format:
    backend
    enter image description here

Change from the Server Command Line

  • Open the app/etc/local.xml file in a text editor. Then locate the following code :




    <![CDATA[admin]]>




    Now change the path

    <![CDATA[admin]]>
    to

    <![CDATA[backend]]>

  • From command line go to your magento root directory and execute the following command :

    rm -rf var/cache/*

That's all. Hope it will help you

answer Feb 23, 2018 by Vishi Gulati
Similar Questions
+2 votes

Last week we had a very strange problem with the admin login of a Magento client of ours. When we tried to login we would get a session id in the url and everything seemed to work, but we were redirected to the same login box.

...