Jump to content

Problem with redirect after login


tonytimms

Recommended Posts

Hi, this is my first time in this forum and I'm not sure if I am in the right one for this question.  I have successfully installed Moodle and everything works ok.  I have our main website and the Moodle installation on the same server.  The main site is in the root and the Moodle site is in a directory called training.

 

I am trying to link to the login page in Moodle from the main index page of our website and this comes up ok, however when I enter the login details and submit it takes me back to the main website instead of logging me in to Moodle.  If I then access the Moodle site directly it has logged me in.

 

I'm possibly in the wrong forum competely here but I have tried the Moodle forum and no one seems to have the answer.  Any suggestions would be appreciated.

 

Regards

 

Tony

 

Link to comment
https://forums.phpfreaks.com/topic/170954-problem-with-redirect-after-login/
Share on other sites

Probably the moodle login page has a relative path. which means it will redirects in the same directory

try to look in the login page, and try to change the redirection.

(if you're not sure of what you are doing, save a copy first.)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.