cancel
Showing results for 
Search instead for 
Did you mean: 

Magento changes domain when working in admin

Magento changes domain when working in admin

Hi all,

in my magento installation I have two different domains for admin section and fronted section.

When I'm working on products in magento admin section sometimes it changes the domain of the url, redirecting me to frontend domain, then going to 404.

 

I try to explain better:

I'm working on a product for example in the page with url:

 

https://www.adminhtml.site.com/index.php/admin/catalog_product/edit/id/20849/key/1714df149cf3421a19f2626f1208db05/

 

then I click save and magento redirect me to the page:

 

https://www.frontend.site.com/index.php/admin/catalog_product/index/key/28b11e627046b472b662d30112edcd0c/

 

My magento installation is on AWS and use redis to maintain session data and varnish as webcache.

 

I don't know how I can procede to analize and resolve. 

 

Could you help me, please?

 

Thanks

 

1 REPLY 1

Re: Magento changes domain when working in admin

Hi @davidelitrico,

 

Normally that will happen (being redirected to the frontend 404) when you try to access to a non-existing URL even on adminhtml.

Maybe you can validate the URL you're trying to access to see why is showing you a 404?