If you are using Cloudflare, then I reccomend using “HTTPs rewrites” and “Redirect all traffic to https” settings, if not then i would say yoink the code out
But its all about changing the root, i have any SSL certificate yet and i guess i didn’t provide any Rules in htaccess to make the connection HTTPs. Although the processing file for Registration cannot be opened mean while processing file for login could be opened. Im pretty sure that its working on my localhost.
I’m not sure about the details, but I think that this may be a security rule taking effect because of the URLs. A folder modules is also commonly used to store libraries and other pages which should not be accessed directly. But I can’t quite explain why modules/login.php does work but modules/register.php does not.
In any case, renaming the folder should be the easiest fix.