GAE PHP app.yaml login redirect to preserve URL

440 Views Asked by At

I have a app.yaml file setting as below

- url: /page.php
  script: lex/page.php
  login: required

Now I have a DNS redirect setup such that website.com/page.php loads app.appspot.com/page.php

ProxyPass /page.php http://app.appspot.com/page.php
ProxyPassReverse /page.php http://app.appspot.com/page.php   

What happens is that when I open website.com/page.php in a browser it does the login and all but finally loads http://app.appspot.com/page.php instead of opening http://website.com/page.com

I tested with an testpage.php that does not need login and it works fine. Any idea how to preserver the URL name?

1

There are 1 best solutions below

1
Peter McKenzie On

If you want to serve off a custom domain, you should use the custom domain support: https://developers.google.com/appengine/docs/domain