Apache 解释htaccess重写条件
在当前项目中,我有以下重写选项。在生产服务器上,一切正常,但在本地服务器上,allways获得404。我认为,这个问题可能是在这种重写条件下。有人能解释一下这是怎么回事吗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} ^/([^\/|\.]+)/([^\
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配置中定义了