-
-
Notifications
You must be signed in to change notification settings - Fork 207
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
redirect #151
Comments
It sounds like your hosted folder and base URL and not synced up correctly. Make sure you are serving the public/ folder and that your base URL is set to reflect any subdirectories (https://codeigniter4.github.io/userguide/installation/running.html) |
Everything is running very well in my app.Controllers redirect route_to works very fine, my problem when i try to use links within myth/auth login/register/forgot/etc... It doesn't work |
Those are all named routes so work a little different than |
I'm using CodeIgniter v4.0.0-rc.3, and latest Myth version |
If you don't mind, please try the latest development branch of |
I tried it and i face the same problem,, it's base_url works fine but after I submit login form it's redirect to http://localhost/login then I click on browser Back button to take me back to http://localhost/codeigniter4/public/login and see validation errors or logged in successfully |
@mostafakhudair Could you please share your |
This sounds like a base url problem because everything works fine on my system. |
.env |
It looks like you are serving the directory above the project root and then trying to adjust the baseUrl to fit it. If you have Apache access, set it to serve |
I'm having the exact same issues with CI4 RC3 - windows 10 running Laragon Any suggestions. Maybe a completed zipped install that works that I can try? |
@rhubka it sounds like you have the same server misconfiguration. You should be serving |
@rhubka try this:
or like this:
|
I can confirm that myth-auth is working as expected both on SSL and non SSL local server configuration (Xampp). But I also need to say that I have made a composer install of both Codeigniter and Myth-auth library. @mostafakhudair If you are using, for example, a xampp installation for local server and you have your codeigniter application files copied, lets say, under C:\xampp\htdocs\yourapplicationrootfolder then try configuring a virtual host so you can overcome the problem you have mentioned, like this :
Good Luck!! |
In your DocumentRoot directive, there's a blank space before /public that should not be there |
@fefo-p Yes indeed and thanks for nothing that! It was very late at night and I ve been fast and furious😜. I removed that space. Anyway it was a general example just to help him getting started with virtual hosts.. |
problem solved @skechav that was a brilliant solution, thanks for the tutorial. |
I face a problem with redirects, when I clock on Login its redirect to from http://localhost/appstarter/public/login to http://localhost/login and nothing happens and when I click on Need an account? it just redirect to http://localhost/register not http://localhost/appstarter/public/register
The text was updated successfully, but these errors were encountered: