Hello, I had the smoothest experience on PythonAnywhere. Now I am thinking to start a custom account here but before that I wanted to make sure that all was working fine for me. So zerop.pythonanywhere.com hosts a web based RESTful API. So for example when I type: curl -i zerop.pythonanywhere.com/appname/number/12344 , I get back the results as I intend to.
Now I have registered a domain name(let's say mywebsite.com) ,I want to point the subdomain api.mywebsite.com to my PA site. I have made it's CNAME record point to my PA site. I typed: curl -i api.mywebsite.com/appname/number/1234 But now the result is this:
HTTP/1.1 301 Moved Permanently
Cache-Control: max-age=900
Content-Type: text/html
Location: http://zerop.pythonanywhere.com
Server: Microsoft-IIS/7.5
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Date: Mon, 04 Aug 2014 20:16:12 GMT Content-Length: 0 Age: 0 Connection: keep-alive
So those are the redirection headers which I get. It's ok for people visiting my site with browsers but for those who would be using the API, that's a lot of problem. Any workaround for it? Thanks, would be grateful to you.