I was creating a facebook app and trying to host the canvas URL on my 1and1 hosting account.Â Even though I could browse directly to the index.html and it would render fine, I would get an error when trying to browse to it via apps.facebook.com.
“Method Not Allowed.Â The requested method POST is not allowed for the URL …”
Although I have not encountered this problem on other web hosts, it appears that 1and1’s web server is set up a little differently.Â When you browse to the canvas page via apps.facebook.com, facebook sends some POST variables to your site.Â 1and1 doesn’t allow an html file to render when POST variables are sent.
A simple workaround is to rename your index.html to index.php. That makes 1and1 think that the POST variables are expected.
Wow! Nice find, Karl.
Despite frustrations with them in the past, I’ve been using and recommending 1and1 for years. No provider is perfect and workarounds for most issues with 1and1 exist. The trick is finding them.
It worked. Thank you sooooo much.
You “The Man” Karl, had me stomped for bout an hour. Thanks!
Brilliant thank you. I thought I was doing well to get this far, only to receive the POST error which made my heart sink. Much as I like a lot about 1&1, things like this are very frustrating.
Good thinking, thanks a lot!
Fantastic! This worked like a charm. Appreciate you sharing. My host is GoDaddy and they treat it the same way as 1&1.
ha ha ha. i’ve been tearing my hair out with this
you, my friend, are a legend…
God bless you! I’ve been Googling for over an hour to resolve this and even contacted customer support (obviously with no luck). Thank you, thank you! :)
That was the solution I’ve been looking for. You made my day.
Good! Its a solution!
Oh God, this post is a life saver. This problem has been driving me nuts for the past few days. Thank you so much!
Very precious help. Thanks infinitely.
Thank you! I’m so sick of 1&1 making things so difficult. This post made my day!
Thank you a ton, brilliant!!!!
Thanks – you solved my problem in just a few clicks!!
Thanks! You rock!
Lifesaver. +1. Thank you.
Thanks, you saved me! Thanks a lot…
AWESOME tip!!! saved me a lot of frustration :)
Thanks so much, that worked and saved me a lot of googleing and frustration. :)
Worked like a charm. Thanks!
Very good. It’s save our time. Thank you
Love your work!
Help – i am not sure which bit i need to change to .php
I tried changing is it the app.htm to app.php and now it says:
Error 403 – Forbidden
You tried to access a document for which you don’t have privileges
I agree with the above sentiments – this is my only real complaint with 1and1, usually great.
Sorry, I’m not sure what’s happening there. -Karl
Gracias, gracias, gracias…Thank you!!!
fantastic, thanks for this. first time using a new client’s site to host FB content, and this was a surprise. Google’d and this was the first result. perfect solution, thanks,
Useful tip, interesting to see more 1and1 users are hosting facebook apps :D
You can get free SSL with them (now that facebook requires it) too…just did a post on it if your interested!
Thanks for that! I need to figure that out, too.
your amazing – i have been trying to solve this problem all day, and it was that simple
Thanks Karl! :D
I have a slightly different problem. The domain I use also has a wordpress installation. This folder therefore already has an index.php file. I added plain html files to this folder and am getting this same error message.
Why not put the facebook app’s index file in a subfolder? As long as the subfolder doesn’t have a name that matches one of your WordPress page names, it will work fine, and then you can call the file index.php.
Thanx 4 that guy :) Fast and simple solve. Keep on doing :)
PHP FTW! Thanks for sharing the solution.
I don’t normally ever comment on these kind of forums, but after much head-banging, you have just provided me with the easiest fix ever, so I just wanted to write to say I love you!!!
Thanks so much dude, I’ve been having so many headaches with 1and1.
Thanks. First post I came to, so managed to solve the problem in about 60 sec, otherwise may have been longer!
Maravilloso. You save my live!