Magento redirects from virtualhost to localhost

by Jeremy   Last Updated January 20, 2018 12:09 PM

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

Tags : magento2.2.2


Answers 1


Ok, I just needed to add changes to core_config_data (web/secure/base_url and web/unsecure/base_url fields)

Jeremy
Jeremy
January 20, 2018 11:55 AM

Related Questions



Magento 2.2 Not Loading theme and blocks

Updated January 11, 2018 02:09 AM