【发布时间】:2014-01-23 22:04:19
【问题描述】:
我正在尝试调用一个 URL(例如:http://localhost:2000/index.n/test),但服务器会尝试像那样查找 test.n,我想进入 index.n 文件并获取 index.n/test作为请求的路径。请问我该怎么做? (我正在使用 Haxe)
(在 PHP 中有效)
非常感谢, 偷看
【问题讨论】:
我正在尝试调用一个 URL(例如:http://localhost:2000/index.n/test),但服务器会尝试像那样查找 test.n,我想进入 index.n 文件并获取 index.n/test作为请求的路径。请问我该怎么做? (我正在使用 Haxe)
(在 PHP 中有效)
非常感谢, 偷看
【问题讨论】:
如果您使用nekotools server 测试您的neko 脚本,您需要使用nekotools server -rewrite 启动它。如果您使用的是 apache,则需要使用 mod_rewrite。
【讨论】: