且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

URL重写,用于将路径转换为查询字符串

更新时间:2023-02-23 09:33:48

一种替代方法是重定向/index.php上的所有请求,并将原始路径附加为查询字符串.然后,您可以使用PHP轻松地检查原始路径的元素.

An alternative would be to redirect all requests at /index.php with the original path appended as the query string. You could then easily examine the elements of the original path using PHP instead.

请参见 https://***.com/a/8019730/1554386