Magento redirects from virtualhost to localhost

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

In hosts:

In httpd-vhosts.conf

<VirtualHost *:80>
ServerName demomage
DocumentRoot C:/wamp/www/mage
<Directory  "/">
    Options +Indexes +FollowSymLinks +MultiViews
    AllowOverride All
    Require local

But on 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)

January 20, 2018 11:55 AM

Related Questions

Magento 2.2 Not Loading theme and blocks

Updated January 11, 2018 02:09 AM