I am trying to have a custom URL which looks like this:
example.com/site/yahoo.com
which would hit this script like this=
example.com/details?domain=yahoo.com
can this be done using app.yaml?
the basic idea is to call “details” with the input “yahoo.com”
You can’t really rewrite the URLs per se, but you can use regular expression groups to perform a similar kind of thing.
In your app.yaml file, try something like:
And in your site.py:
What happens is, whatever you have after
/site/in the request URL will be passed toSiteHandler‘sget()method in thesiteparameter. From there you can do whatever it is you wanted to do at /details?domain=yahoo.com, or simply redirect to that URL.