Magento redirect

0

I have two environments of an e-commerce in Magento: homologation and production. The problem is this: when I log in for approval, it redirects me to production. In the confirmation login screen, the action of <form> is going to the Production server, when in fact it should go to homologation, however the link that it should make the post is received by PHP code <?php echo $this->getPostActionUrl() ?> , which in this case should receive the homologation link, right? Any idea what that might be?

    
asked by anonymous 16.12.2014 / 13:04

2 answers

1

Access the database from where Magento is installed and change the CORE_CONFIG_DATA table to the new location, just change the values of the table path field that are respectively: web / unsecure / base_url and web / secure / base_url );

If you do not remember which database your Magento is installed on, go to the 'local.xml' file in the folder:

app / etc

    
04.07.2015 / 00:14
0

Correcting this problem is very simple - there are even two ways to resolve quickly.

The first way, which I see as simpler, is to access your application's database and directly modify the URLs in the “web/unsecure/base_url” and “web/secure/base_url” fields, which are in the “core_config_data” table.

After that, just delete the entire contents of the /var/cache folder and ... voila!.

    
15.01.2015 / 20:20