i finally managed to make the redirection to /my/index.html by adding in the index.php the following lines:
if (!isloggedin()) {
redirect($CFG->
wwwroot .'/my/');
}
I also created an html form in /my/login.html like this:
form action="../login/index.php" method="POST">
input id="username" type="text" name="username" >
input id='password' type=password name="password">
input id='enterbtn' type="SUBMIT" value="Είσοδος">
/form>
With this form i can succesfully login if i enter the correct credentials.
If i enter wrong credentials it also redirects me correctly to /login/index.php.
But the PROBLEM now is that even if browser 'keeps' filled in the form fields the correct credentials then
it fails to login and redirects me somehow back to /my/login.html
Do you know why this is happenning?
P.S. I have deleted the first "<" intetionally