I am using a non-custom domain at pythonanywhere.com
Specifically to access my non-custom domain myusername.pythonanywhere.com I use the URL https://myusername.pythonanywhere.com which has the HTTPS certificate provided by pythonanywhere.com by default.
To force the use of HTTPS to any user who accesses my non-custom domain myusername.pythonanywhere.com using HTTPS, that is, https://myusername.pythonanywhere.com, it is necessary for the user to enter the username and password that enable force HTTPS to access to my non-custom domain.
In case the credentials for HTTPS are entered correctly the user can access the non-custom domain using https://myusername.pythonanywhere.com
In the event that the HTTPS credentials entered are not correct, I want to redirect the user to a customized landing page. Specifically, if the HTTPS credentials are not validated then the user will be directed to a more personalized landing page (unauthorized_https.html) instead of receiving the “Unauthorized” message that is sent by pythonanywhere.com
My question is:
How can I implement a landing page for my non-custom domain using a HTTPS certificate provided by pythonanywhere.com?
Any help will be greatly appreciated
Thanks,