【问题标题】:How to remove the "?" character from g-wan URIs如何删除“?” g-wan URI 中的字符
【发布时间】:2014-11-23 21:50:20
【问题描述】:

我检查了 cache.c

更新:好的,我知道上面是做什么的,但问题是你必须先调用上面的脚本,然后才能作为永久链接访问它。有什么方法可以在不使用“?”的情况下访问永久链接? (首先)?

我也查看了这个链接:Anatomy of G-WAN URI servlets

我想要http://example.com:8080/servlet/arg1/arg2,不带“?”,并希望上面的链接将“servlet”引用到servlet.c

基本上,就像这个问题的漂亮网址

https://stackoverflow.com/questions/27084626/how-to-remove-in-g-wan-url-completely

看到...没有“?”在 URL 中。

这可能吗?

我也查过了

u8 *query_char = (u8*)get_env(argv, QUERY_CHAR);
*query_char = '!'; // use "/!hello.c" instead of "/?hello.c" 

我知道我做不到

*query_char = '';

【问题讨论】:

标签: http g-wan


【解决方案1】:

你可以用处理程序重写 url 有一个简单的rewrite example

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多