Error "405 Not Allowed" after sending form at php

Hi there,

I started to create a homepage (https://jonny2019.github.io/) and I hosted it via github pages.

The Index.html is a password query.

If you click at “absenden” the formular is send to “home.php”. I want it to display the usernam and the password to

test it, but it is not working. There is displayed “405 Not Allowed”.

Is it caused by GitHub pages?

GitHub pages offers static web pages hosting, so PHP doesn’t work on gh-pages.

https://github.community/t5/GitHub-Pages/Deploying-PHP-to-GitHub-Pages-is-it-possible/m-p/2741#M206

https://stackoverflow.com/questions/27672315/do-github-pages-support-php

1 Like