![]() |
彻底解决ZenCart伪静态化后出现的?zenid=xxxxx的问题
遇到URL后面带有一串&zenid=.....的地址而地址是无效的情况下,
彻底解决的办法是在html_output.php里面修改代码,具体操作如下: 找到if (isset($sid)) { $link .= $separator . zen_output_string($sid); }这段代码,把它屏蔽掉就可以了。 如果你使用的是Ultimate SEO URLs模块,则 打开includes\functions\html_output.php 找到 function zen_href_link($page = '', $parameters = '', $connection = 'NONSSL', $add_session_id = true, $search_engine_safe= true, $static = false, $use_dir_ws_catalog = true) { 将代码第一行中$add_session_id = true 修改为:$add_session_id = false 如果在后台设置force cookies为true的话,很多顾客会无法完成付款流程; 以上方法试用了,还不行?! 看这里: 在后台的Configuration-->Sessions里有一项Session Directory,它是指定session所使用的文件目录。如果这个文件夹不存在,或者不可写的话。那么就会在URL上显示zenid=,解决方法就是让session所使用的文件目录存在并且可写。 注:这个Session 目录一般就是cache文件夹所在目录,要设有写入的权限。 |
| All times are GMT +8. The time now is 05:53 AM. |
Powered by vBulletin Version 3.8.7
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.