Redirector
Say you want to deploy an app on Google App Engine under the domain yourname.com and www.yourname.com. The problem both domains will work, which leads to inconsitent results. For now it is not possible to configure a redirect in App Engine.
This little application is a redirector for naked domains (eg. yourdomain.com) to a subdomain (eg. www.yourdomain.com)
Configure DNS
- Create a-records for your domain. You find the ip's here
- Wait a few hours until the ip's are progrageted
Configure redirector
- Replace your-app-name in app.yml with your app name
- Deploy the app in Google App Engine
Configure Google Apps
- Add the naked domain in Google Apps in the deployed redirector app. (For now your Control panel needs to be in current mode, than adding a plain domain works)
- Add the subdomain to the app you want to redirect to.
The app will foward every request including the request path, to the subdomain hardcoded in the app (www). You can add more than one naked domain to redirect to. Just add the naked domains in Google App Engine preferences.
Eg. http://bigcurl.de --> http://www.bigcurl.de or http://6230.org --> http://www.6230.org