Warning: mysql_query(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home/content/16/11852616/html/21say-com/wp-content/plugins/translate/translate.php on line 11

Warning: mysql_query(): A link to the server could not be established in /home/content/16/11852616/html/21say-com/wp-content/plugins/translate/translate.php on line 11

Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in /home/content/16/11852616/html/21say-com/wp-content/plugins/translate/translate.php on line 11

Warning: mysql_query(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home/content/16/11852616/html/21say-com/wp-content/plugins/translate/translate.php on line 20

Warning: mysql_query(): A link to the server could not be established in /home/content/16/11852616/html/21say-com/wp-content/plugins/translate/translate.php on line 20

Warning: mysql_query(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home/content/16/11852616/html/21say-com/wp-content/plugins/translate/translate.php on line 328

Warning: mysql_query(): A link to the server could not be established in /home/content/16/11852616/html/21say-com/wp-content/plugins/translate/translate.php on line 328

Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in /home/content/16/11852616/html/21say-com/wp-content/plugins/translate/translate.php on line 329

Warning: mysql_query(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home/content/16/11852616/html/21say-com/wp-content/plugins/translate/translate.php on line 335

Warning: mysql_query(): A link to the server could not be established in /home/content/16/11852616/html/21say-com/wp-content/plugins/translate/translate.php on line 335

Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in /home/content/16/11852616/html/21say-com/wp-content/plugins/translate/translate.php on line 336
怎样去除zencart URL地址后面的“?zenid”参数 | 骆驼调频
现在的位置: 首页 > Web > 正文
怎样去除zencart URL地址后面的“?zenid”参数
2010年12月31日 Web ⁄ 共 631字 暂无评论 ⁄ 被围观 74 views+

去除zencart程序的zenid有两种方法

1)、在后台 Configuration->session 将 Force Cookie Use 设置为ture;
一般如果网站只是在刚开启的时候存在 zenid 的话,只要这样设置一下就可以了;
另一种就是从头到尾,URL地址后面一直都会有一串zenid= 参数后缀,这个情况可能是因为缓存文件夹没有写分配权限或者不存在,可以试试方案2。

2)、引用英文论坛上的一个正确回复:
In case some of you are wondering why zen_id is all of a sudden being added to your links (or always has) and you want it gone:
Be sure that your “Session Directory” in Configuration>Sessions is set to a directory that actually exists and is writable. If the directory doesn’t exist, then Zen Cart will starting adding zenid to URLS.
Hope this helps.
这句话的意思就是说在zen-cart后台的 Configuration>Sessions 里有一项 Session Directory,它是指定session所使用的文件夹的,如果这个文件夹不存在或者不可写的话,那么就会在URL上显示 zenid= ,解决方法就是让这个项所指向的文件夹存在并且可写。

给我留言

留言无头像?