A simple example of how to do redirection in App Engine Python apps has
been written by an independent consultant and posted at their site,
https://www.the-swamp.info/blog/google-app-engine-redirection-naked-domain-www/
--
it includes a link to a github repo, also owned by the article's author,
with examples using Python with either of the webapp2 or Flask web app
frameworks. I'm not familiar with how to perform the same task with
programming languages different from Python (or with Python and different
frameworks, such as Django) but simple Google searches (such as [app engine
redirect django] and the like) seem able to help.

Alex


On Tue, Aug 13, 2019 at 9:43 AM David Smith <[email protected]>
wrote:

> Hi, I've asked this question on stackoverflow but it's not getting much
> attention:
>
>
> https://stackoverflow.com/questions/57470503/how-to-avoid-potential-security-issue-if-users-incorrectly-use-www-for-an-apps
>
> If a user incorrectly uses www in the URL they can not get through at all
> and it looks like a really suspicious site.
>
> The short question is, how do I redirect www.mysite.appspot.com to
> mysite.appspot.com just using the app.yaml file?
>
> This must be a really stupid question because I've searched for hours and
> found nothing to answer it.
>
> This is more detail in the SO question which I can insert here if you
> think that's best.
>
> Thanks,
>
> Dave
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-appengine/0cf977ca-6182-4f83-b79e-32e86ef4a13d%40googlegroups.com
> <https://groups.google.com/d/msgid/google-appengine/0cf977ca-6182-4f83-b79e-32e86ef4a13d%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CAE46Be9YMOuDnRWqbH7ZKhmcmXuzxzNHRkRd9Z_3D2rDB2T%2B8g%40mail.gmail.com.

Reply via email to