#1 September 19, 2016 4:10pm

jmason03
Member
Registered: January 9, 2014
Posts: 123

Site Domain with Multiple URL Segments on 4.2.12

I just upgraded to 4.2.12 and I'm having a small issue with the login page. My site domain as defined in my environment.php file is: "http://localhost/bigtree_dev/" and when I go to the login page and input the correct login credentials I am ultimately redirected to "http://localhost/bigtree_dev/bigtree_dev/admin/login" this comes back as a 404 page rather than taking me into the admin to the dashboard. Now I am actually being logged in correctly and if I browse to: http://localhost/bigtree_dev/admin/dashboard" everything works fine. I believe I found the problem is in /core/admin/router where $_SESSION["bigtree_login_redirect"] = DOMAIN.$_SERVER["REQUEST_URI"];

The request uri is: /bigtree_dev/admin/login because there are multiple segments in my domain. I'm having trouble coming up with a way to solve this so that the extra parts of the domain are either removed from the request uri or are removed from domain before it is prepended to the request_uri. Do you have any thoughts on what the best approach might be?

Thanks

Offline

#2 September 19, 2016 4:12pm

timbuckingham
Administrator
From: Baltimore, MD
Registered: April 2, 2012
Posts: 978

Re: Site Domain with Multiple URL Segments on 4.2.12

$bigtree["config"]["domain"] should just be "http://localhost" - I think that's your redirect issue but if that doesn't fix it let me know! There was a lot of complex routing updates in 4.2.12 to support multi-domain/multi-site instances from one BigTree admin.

Offline

#3 September 19, 2016 4:17pm

jmason03
Member
Registered: January 9, 2014
Posts: 123

Re: Site Domain with Multiple URL Segments on 4.2.12

Awesome! That worked. For some reason I guess I thought the domain needed to be the same as my www_root.

Thanks!

Offline

Board footer

Powered by FluxBB

The Discussion Forum is not available on displays of this size.