redirect在url中使用cgi-bin的页面

我在redirectpath中包含cgi-bin的url时遇到问题

例:

http://website.com/cgi-bin/pc.storefront/en/product/product.aspx?iid=123

.htaccess redirect 301 /cgi-bin/pc.storefront/en/product/product.aspx?iid=123 http://website.com/homepage.html 

使用该redirect服务器返回:此服务器错误消息传递上不存在/cgi-bin/pc.storefront/en/product/product.aspx。

但是,如果保持一切,并从等式中删除cgi-bin,那么redirect就可以完美工作。

服务器是使用mod_rewrite的apache2。 cgi也在httpd.conf中被禁用。 有没有关于redirectcgi-bin的问题?

对于更多的Apacheconfiguration,通常会有一组缺省的指令。 这个默认通常在cgi-bin文件夹/别名上包含AllowOverride none指令。 AllowOverride none表示文件夹/别名中的.htaccess文件将被忽略。

尝试将主configuration指令更新为AllowOverride Fileinfo