Magento multi-store: Hidding Admin’s login page

Sup guys. The other day I was messing around my Magento multi-store configuration and I realize that all my domains could acess the backend login page, like in or or Not that this is a problem, but what if I didn’t want all my stores to have acess to this page? Well, that’s not a problem for Magento, you can easily manage that using Store View and I’m gonna show you guys how to do it.

(sorry, screenshots only in portuguese)

First go to Catalog -> URL Rewrites


Click on Add New URL Rewrite.


Now select “Custom” on “URL Rewrite” and you will have a few options. “Type” will be “Custom” as you selected previosly, now on Store select the Store View of the store you don’t want to allow acessing the backend login page, on “ID Path” and “Request Path” write “admin” or whatever is the backend login page for your store, on “Target Path” write “no-route” (this will redirect to a 404 page) and “Redirect” select “no”.


So that’s it. Simple, right? Now everytime somebody tries to acess /admin on this Store View, it will be redirect to a 404 page. This is a great solution if you want to have only one main domain to access the backend and leave all the other stores to simple do it’s purpose – to sell stuffs.

See you next time.

Share on Facebook
Leia esse post em português

Leave a Comment