Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/url/2.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
关于如何从magento中删除随机数的问题_Magento_Url_Rewrite_Categories - Fatal编程技术网

关于如何从magento中删除随机数的问题

关于如何从magento中删除随机数的问题,magento,url,rewrite,categories,Magento,Url,Rewrite,Categories,其中一个类别在关键url的末尾不断生成随机url,如: 奇怪的是,只有这一类是随机数 有没有办法删除随机数 谢谢问题是由于数据库中保存了重复的url路径。/wheels brand/rohana wheels.html。系统在表core\u url\u rewrite 备份数据库 截断core\u url\u重写表或 查询core\u url\u rewrite并删除请求路径中带有custom wheels/wheels brand/rohana wheels.html的行 转到目录>管理

其中一个类别在关键url的末尾不断生成随机url,如:

奇怪的是,只有这一类是随机数

有没有办法删除随机数


谢谢

问题是由于数据库中保存了重复的url路径
。/wheels brand/rohana wheels.html
。系统在表
core\u url\u rewrite

  • 备份数据库
  • 截断
    core\u url\u重写
    表或
  • 查询
    core\u url\u rewrite
    并删除请求路径中带有
    custom wheels/wheels brand/rohana wheels.html
    的行
转到目录>管理类别>选择“Rohana车轮”类别

  • 清除URL键,重新输入
    rohana wheels
    并重新保存
  • 转到系统>索引管理,重建
    目录URL重写
  • 刷新缓存

  • /sitemap.xml

  • 向谷歌等提交更新后的网站地图

如果可以接受,您还可以在站点范围内更改类别路径,通过在文本字段
Admin>System>Configuration>Catalog>Search Engine Optimizations>category URL suffix
中输入
/
,可以从路径
./wheels brand/rohana wheels
中删除类别后缀
.html
,然后刷新缓存并重新加载