【发布时间】:2011-04-08 00:38:08
【问题描述】:
我们正在尝试启动一个 Magento 网站。我们进行了一大堆 URL 重写,但是当我将其添加到 .htaccess 文件时,该站点无法加载。
显然我做错了什么,这是我正在使用的代码:
RewriteCond %{QUERY_STRING} ^StoreLevel=3&PrevStoreLevel=1&productid=6067&Level1=155&p=5&term=&BrowseBy=0$
RewriteRule ^store\.php$ http://oursite.com/zproduct.html? [R=301,L]
非常感谢任何建议。
【问题讨论】:
-
您收到了哪些错误消息?
-
嘿,是的,这可能是有用的信息,我得到:500 Internal Server Error
-
开启重写错误日志并发布你得到的输出。
RewriteLog /var/log/httpd/rewrite.log RewriteLogLevel 9 -
试过了,粘贴在文件顶部:############################## ############ RewriteLog /var/log/httpd/rewrite.log RewriteLogLevel 9 ####################### ###################服务器在此踢回500错误
-
你是把它放在 vhost conf 中吗? httpd.apache.org/docs/current/mod/mod_rewrite.html#rewritelog