Login page was not found 404

Login page was not found 404

by Goo Goo -
Number of replies: 4

Hello!

Please help me out, I was adding a welcome message to my login page of Moodle.

After adding text and saving changes to

Plugins -> Manage Authentication -> Instructions field (auth_instructions)

 

The login page won't open anymore, it says 404 Not Found when I try to open this page:

https://mydomain.com/login/

 

And everytime I enter https://mydomain.com/login/ in the browser - it changes to https://mydomain.com/login/adminlogin

 

where "adminlogin" is the administrator's username. 

 

how can I revert everything back to normal? And why is it happening? 


Average of ratings: -
In reply to Goo Goo

Re: Login page was not found 404

by Leon Stringer -
Picture of Core developers Picture of Particularly helpful Moodlers

Try adding the following to config.php:

$CFG->auth_instructions = '';
$CFG->alternateloginurl = '';

I suggest the second line too as this is normally responsible for changing the login URL.

Average of ratings: Useful (1)
In reply to Leon Stringer

Re: Login page was not found 404

by Goo Goo -
Yes, that was it! Thank you very much! I home more people in future will find this post and sees this solution!

and could you help regarding the Welcome message that I want to show on the main page when someone visits mydomain.com?
Which is the best way to achieve that?
In reply to Goo Goo

Re: Login page was not found 404

by Leon Stringer -
Picture of Core developers Picture of Particularly helpful Moodlers

Start with the Front Page Settings and Front Page FAQ in the Moodle Docs. If you need more help with the Welcome message try posting in the General forum explaining your requirements or the Themes forum if using an additional theme.

Or search the forums (maybe this is relevant).

(I'm better at the technical side rather than what things look like).

Average of ratings: Useful (2)