Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/magento/5.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
.htaccess Htaccess重写规则在Htaccess magento上不起作用_.htaccess_Magento - Fatal编程技术网

.htaccess Htaccess重写规则在Htaccess magento上不起作用

.htaccess Htaccess重写规则在Htaccess magento上不起作用,.htaccess,magento,.htaccess,Magento,我将此代码添加到我的htaccess中 RewriteRule ^furniture/([0-9]+)/?$ furniture.php?color=$1 [NC,L] 假设我在我的网站上有一个这样的链接,它根据颜色过滤我的产品,当我输入/键入地址栏时,它应该列出所有颜色为idcolor=26的产品,但我的页面将我重定向到404 NOT Found!这是我的!,我在用Magento。我不知道我的代码在哪里/遗漏了什么。希望有人能给我一个解释,为什么它不工作,并借给我一些想法。提前感谢。您已经实

我将此代码添加到我的htaccess中

RewriteRule ^furniture/([0-9]+)/?$ furniture.php?color=$1 [NC,L]

假设我在我的网站上有一个这样的链接,它根据颜色过滤我的产品,当我输入/键入地址栏时,它应该列出所有颜色为idcolor=26的产品,但我的页面将我重定向到404 NOT Found!这是我的!,我在用Magento。我不知道我的代码在哪里/遗漏了什么。希望有人能给我一个解释,为什么它不工作,并借给我一些想法。提前感谢。

您已经实施了吗