Welcome Guest, Not a member yet? Register   Sign In
Redirect issue
#4

(This post was last modified: 07-26-2019, 12:07 PM by Digital_Wolf.)

(07-26-2019, 03:04 AM)SirTom Wrote: Thank you. This solution works, BUT it seems to be a bug.

I have called the following URL: http://localhost/mySite/myController/myFunction

with


PHP Code:
public $baseURL 'http://localhost/mySite/'



Now i call a redirect with:


PHP Code:
return redirect()->back() 


I will be redirected to the following URL: http://localhost/myController/myFunction

The URI-Element /mySite/ is missing.

I think you have in the apache server settings is not installed option "root document",
go to the settings in file httpd.conf and set it
Code:
DocumetRoot = "mySite/public"
,
then you can redirect without substitution segment of "mySite",
just typing in your browser's address bar as

Code:
http://localhost/myController/myFunction
and so on
I would change this world, but God doesn't give me the source.
Reply


Messages In This Thread
Redirect issue - by SirTom - 07-25-2019, 11:18 PM
RE: Redirect issue - by Digital_Wolf - 07-26-2019, 01:31 AM
RE: Redirect issue - by SirTom - 07-26-2019, 03:04 AM
RE: Redirect issue - by Digital_Wolf - 07-26-2019, 12:02 PM
RE: Redirect issue - by includebeer - 08-02-2019, 10:51 AM
RE: Redirect issue - by InsiteFX - 08-02-2019, 02:11 PM
RE: Redirect issue - by includebeer - 08-05-2019, 06:47 AM
RE: Redirect issue - by InsiteFX - 08-02-2019, 02:41 PM
RE: Redirect issue - by includebeer - 08-05-2019, 06:58 AM



Theme © iAndrew 2016 - Forum software by © MyBB