Makes it easier to publish a Magento site using ngrok by dynamically switching the Base URL to whatever value is in the $_SERVER['HTTP_HOST'] variable.
I run magento on laravel homesteage box.
apache2
php 7.0
I noticed that
($_SERVER['HTTP_HOST']) is equal to site.local URL
so I changed it to HTTP_X_ORIGINAL_HOST and got an endless redirect loop.
Get rid of them using debug_backtrace() checks.
With this version I also can't reproduse #1 and #2 issues.
I run magento on laravel homesteage box. apache2 php 7.0 I noticed that ($_SERVER['HTTP_HOST']) is equal to site.local URL so I changed it to HTTP_X_ORIGINAL_HOST and got an endless redirect loop. Get rid of them using debug_backtrace() checks. With this version I also can't reproduse #1 and #2 issues.