Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/.htaccess/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Apache .htaccess.hiawatha正则表达式转换_Apache_.htaccess_Hiawatha - Fatal编程技术网

Apache .htaccess.hiawatha正则表达式转换

Apache .htaccess.hiawatha正则表达式转换,apache,.htaccess,hiawatha,Apache,.htaccess,Hiawatha,所以我不明白从htaccess到hiawatha的转换是如何工作的。你能推荐一个好的网站或一本好书进入这个话题吗 我的问题是以下转换: RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^((?s).*)$ index.php?_url=/$1 [QSA,L] htaccess RequestURI exists Return Match ^((?s).*)$ Rewrite /index.php?_url=/$1 希瓦塔 但是Match重写语句

所以我不明白从htaccess到hiawatha的转换是如何工作的。你能推荐一个好的网站或一本好书进入这个话题吗

我的问题是以下转换:

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^((?s).*)$ index.php?_url=/$1 [QSA,L]
htaccess

RequestURI exists Return
Match ^((?s).*)$ Rewrite /index.php?_url=/$1
希瓦塔


但是Match重写语句是错误的

hiawatha URL工具包的解决方案是:

RequestURI exists Return
Match ^/(.*) Rewrite /index.php?_url=/$1
这会将所有内容重定向到index.php。 例如
http://host/get/123
重写为
http://host/index.php?_url=/get/123

你能更具体地解释一下“错”是什么意思吗?Hiawatha没有开始。。。由于config.com中的Match语句,以防有人感兴趣,教程7:phalcon REST API需要此语句