Redirecionamento Magento

Asked

Viewed 961 times

0

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

  • Did you clear the cache of the user? Did you check if it is pointing (see in XML) to the correct database where the links point to approval? Did you check if the database has the right links? Did you check if there are any redirects in ". htaccess"? If after that does not work, calling delete the browser cache, restarted the computer, change chair...

2 answers

1

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

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

app/etc

inserir a descrição da imagem aqui

inserir a descrição da imagem aqui

  • Thanks for the reply Rafael, but the links from base_url are already pointing to the type approval environment. This left me with more doubt about the problem, because even with the links pointing to the approval environment, it falls into production. At the moment I solved the direction in hardcode, but it is not the best way.

0

Fixing this problem is very simple - there are even two ways to solve it quickly.

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

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

  • Both are already indicating for approval, but even so the link of the post is going to production...

  • Always remember to delete all cache content "TODO"

  • Clearing the cache by admin is not enough?

  • Updating the information: I checked the database and the "base_url" are with the homologation link. And I’ve already deleted everything from the /var/cache folder, but nothing has changed.

  • erases everything from the /var

  • if that’s not too weird

Show 1 more comment

Browser other questions tagged

You are not signed in. Login or sign up in order to post.