在 webapp2 (python) 中,您可以将 url 映射到一个文件中的类。
app = webapp2.WSGIApplication([('/', pgMain), ('/test/', pgTest)], debug=True)
我将如何在 php 和 apache 中设置这样的东西?
谢谢
编辑:
我所追求的是将文件夹名称重定向到该文件夹中的文件之后的所有内容。例如。
/version/1.0/test/folder/ => /version/1.0/index.php & var="/test/folder"
/version/1.0/another/ => /version/1.0/index.php & var="/another"
谢谢。