Magento redirects from virtualhost to localhost [closed]
-
27-12-2020 - |
Question
In hosts:
127.0.0.1 www.demomage.com
In httpd-vhosts.conf
<VirtualHost *:80>
ServerName demomage
ServerAlias www.demomage.com
DocumentRoot C:/wamp/www/mage
<Directory "/">
Options +Indexes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>
But on www.demomage.com Magento redirects to localhost/mage
Solution
Ok, I just needed to add changes to core_config_data (web/secure/base_url and web/unsecure/base_url fields)
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange