You really cannot rewrite URLs as such, but you can use regex groups to do this.
In the app.yaml file try something like:
handlers:
- url: /site/(.+)
script: site.py
And on your site.py site:
SiteHandler(webapp.RequestHandler):
def get(self, site):
pass
def main():
application = webapp.WSGIApplication([('/site/(.+)', SiteHandler)], debug=True)
util.run_wsgi_app(application)
, , /site/ URL- , SiteHandler get() site. , /details?domain=yahoo.com, URL.