UltimateModuleCreator / umc

Magento 2 Ultimate Module Creator
MIT License
58 stars 10 forks source link

ERR_TOO_MANY_REDIRECTS on any page #13

Closed FredericMartinez closed 5 years ago

FredericMartinez commented 5 years ago

Hello Marius :)

Every URL is redirected with a infinite public folder cascade.

URL: http://umc.test/public/index.php/settings

Is redirected to: http://umc.test/public/index.php/public/public/public/public/public/public/public/public/public/public/public/public/public/public/public/public/public/public/public/index.php

Here a small video: https://www.screencast.com/t/jNR0llMyDkP

UltimateModuleCreator commented 5 years ago

@FredericMartinez Strange. That does not happen on my side. but honestly, I used only 'localhost' as url so far.
Will investigate and get back to you. Thanks for reporting this.

FredericMartinez commented 5 years ago

Info: I use Valet Plus on MacOS in a standard configuration way.

UltimateModuleCreator commented 5 years ago

@FredericMartinez I wasn't able to reproduce this, but here is what you can try. There is a file index.php in the root of the project that does this:

<?php
header("Location: public/index.php");

Try removing it.
If that does not work, replace its contents with the contents from public/index.php and adjust the relative paths involved in it.

sidealice commented 5 years ago

i have same problem at the backend. magento2.3

mlaurense commented 5 years ago

Fixed! Go into the public subdirectory, and issue a valet link umc.test. This will link the public directory to the webroot.