【发布时间】:2014-09-18 12:46:18
【问题描述】:
假设网址是:
domain.tld/test?abc
这是脚本:
def application(environ, start_response):
a = environ['QUERY_STRING']
start_response('200 OK', [('Content-Type', 'text/html')])
yield a
输出是:
abc
但问题是.. 可以“?”换成其他符号?
例如..
domain.tld/test-abc
如果不使用 mod_rewrite 等,这是否可能?
【问题讨论】:
标签: python apache python-2.7 mod-wsgi wsgi