Nurul’s Personal Blog

It is very easy to change admin URL for magento
If you want to change URL from

http://www.example.com/index.php/admin or http://www.example.com/admin
TO
http://www.example.com/index.php/siteadmin or http://www.example.com/siteadmin
Here’s what I did (worked for me on 1.3.1):

1) Open <magento_install_dir>/app/etc/local.xml
2) Find this code:

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

3) In that snippit of code, change
<frontName><![CDATA[admin]]></frontName>
to
<frontName><![CDATA[siteadmin]]></frontName>
4) Save the local.xml file

5) Remove everything under <magento_install_dir>/var/cache/
6) Remove everything under <magento_install_dir>/var/session/

Update:
7) Don’t forget to change permissions for the local.xml to read only. I would recommend chmod 440 or 444.
🙂

Advertisements

Comments on: "Magento admin URL change" (9)

  1. That’s Great IDEA ~~~ Good post…
    Thank you very much….
    happy WorldCup !!!!

  2. i have removed all session cache, but still can’t login, only show login page, no CSS , no JS,
    what can i do ?

  3. Good Things, Congresss………….

  4. Thanks, this was exactly what I was looking for. Worked perfectly.

  5. thanks, working perfect…..gr8888

  6. Just what I searching for.
    Works very good.

    Thanks 🙂

  7. does it work on 1.4.1.2?

  8. Thank you soooo much…..

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: