Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/apache/8.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重写条件_Apache_.htaccess_Mod Rewrite_Rewrite - Fatal编程技术网

Apache 解释htaccess重写条件

Apache 解释htaccess重写条件,apache,.htaccess,mod-rewrite,rewrite,Apache,.htaccess,Mod Rewrite,Rewrite,在当前项目中,我有以下重写选项。在生产服务器上,一切正常,但在本地服务器上,allways获得404。我认为,这个问题可能是在这种重写条件下。有人能解释一下这是怎么回事吗 RewriteCond ${rewrite:%{REQUEST_URI}|notfound} !=notfound RewriteRule (.*) ${rewrite:%{REQUEST_URI}} [R=301,L,QSA] 然后 RewriteCond %{REQUEST_URI} ^/([^\/|\.]+)/([^\

在当前项目中,我有以下重写选项。在生产服务器上,一切正常,但在本地服务器上,allways获得404。我认为,这个问题可能是在这种重写条件下。有人能解释一下这是怎么回事吗

RewriteCond ${rewrite:%{REQUEST_URI}|notfound} !=notfound
RewriteRule (.*) ${rewrite:%{REQUEST_URI}} [R=301,L,QSA]
然后

RewriteCond %{REQUEST_URI} ^/([^\/|\.]+)/([^\/|\.]+/)*([^\/|\.]+)/?$
RewriteCond ${multishop:%1|notfound} !=notfound
RewriteCond ${kategorie:%3|notfound} !=notfound
RewriteRule (.*) index.php?${multishop:%1}&cat=${kategorie:%3} [L,QSA]

Apache配置会影响这一点吗?

此条件语法表明您很可能已在生产服务器的Apache配置中定义了