Two backslash in url in virtualhost |
Hi , i use xammp to testing my project in locale with windows using the guide of first response of this tread :
https://stackoverflow.com/questions/2775...pp-windows in C:\Windows\System32\drivers\etc i do : Code: 127.0.0.1 my_project Code: app.baseURL = 'http://my_project' Code: public function before(RequestInterface $request, $params = null) the system redirect me to the login (ok) but with this link : http://my_project//admin/login (with 2 / ) Why ?
Because the baseURL should end with a slash (/).
Try: base_url('admin/login');
remove the forward slash before admin in your redirect:
"return redirect()->to(base_url() . '/admin/login');" <- wrong "return redirect()->to(base_url() . 'admin/login');" <- correct
Shortcode Κατασκευή Eshop + Δημιουργία Ιστοσελίδων
Athens Greece
What Kenji means is that your base_url is probably http://my_project/
including the backslash. To go to the admin page, you shouldn't use: Code: return redirect()->to(base_url().'/admin/login'); but: Code: return redirect()->to(base_url().'admin/login');
Why are you using merge instead of passing a parameter to a function? It's so annoying.
|
Welcome Guest, Not a member yet? Register Sign In |