magento 网址优化

magento产品分类

优化前的网址:http://127.0.0.1/index.php/apparel/shoes.html

优化后的网址:http://127.0.0.1/apparel/shoes

magento产品详细页

优化前的网址:http://127.0.0.1/index.php/cn-clogs-beach-garden-clog.html

优化后的网址:http://127.0.0.1/cn-clogs-beach-garden-clog

设置位置如下图:

———————————————————————————————-

hellokeykey.com

注意红色部分留空,就是去掉了网址后面的 .html

蓝色部分设置成 NO,这个蓝色部分是设置“是否将产品的分类加到产品的url中”,选NO就是不加

————————————————————————————————

hellokeykey.com

注意绿色部分要设置成 YES

————————————————————————————————-

最后一步是进入magento的 cache management 刷新 Catalog Rewrites的缓存,刷新下magneto缓存。或者建议你将magento根目录的var文件夹的cache文件夹删掉,这样最方便。

相关文章详见:magento网址规范化

将分类Code添加到产品URL

magento网址www的设置

转载标明出处: hellokeykey.com 右兜钥匙

最好的magento专用服务器
最好的magento专用服务器

《magento 网址优化》有18个想法

    1. gd空间你是指godaddy空间么?我不知道你的空间是否满足magento的环境要求。如果不行多半是缓存的问题吧,去刷新各种可以刷新的地方吧

  1. 今天在youku看了hellokeykey的视频教程,很好。
    希望hellokeykey多出一些视频教程和文字教程。
    再 次感谢hellokeykey!

    1. 这些我忘记哪里可以去掉了,seo能勾的都勾上,似乎有个是否在url显示店的名字禁用掉。清空缓存

  2. 你好钥匙大哥, 我想问下我用的是lighttpd的服务器, 说是不支持 mod_rewrite的, 我查找了很多资料, 都没有解决的方法, 一旦选择web server rewrite 为 YES, 产品链接的都是404错误, 你是否知道该如何解决?  顺便说一下, 你的视频很好, 很管用, 万分感谢… (我介绍好几个朋友来看你的视频了, 呵呵, 目前好像只有你在弄哦, 加油…)

    1. 对啊,你没有那个模块就不要开启web server rewrite 了,能装上已经不错了。建议更换专用服务器,google“magento hosting”可以搜到很多,也不贵的。20美金以上的是速度快的

  3. “angellove0219
    四月 23rd, 2010 at 11:07 下午
    首先感谢hellokeykey.
    我在本地试了下,.html是去掉了,但后面又加了__store=german&___from_store=french这些东西
    变成http://127.0.0.1/magento/?___store=german&___from_store=french”

    出现同样问题。没有找到修改地方

  4. 搜索引擎把 地址都收录为 “?___website=base&___store=default ”了。真不知道怎么能够把这个改回来了。哎~~~~key大指点指点把。

    1. 不会这么倒霉吧,你用magento的sitemap制作个网站地图,用google网站管理员工具提交给google。既然已经收录,那就只能过好久才消失了,你要是多语言的店,就开启那个将店代码加入到url的选项。

  5. 没有搞空间优化,一时冲动按你的指示做了。但是很不幸 前台出现了这个提示
    “The page you requested was not found, and we have a fine guess why.
    •If you typed the URL directly, please make sure the spelling is correct.
    •If you clicked on a link to get here, the link is outdated.”

    请问怎么恢复
    谢谢了 KEY 哥

  6. 你好,我用的是你介绍的simplehelixmagento的服务器 我装的是1.6的 可是我按你上面说的做了 也出现了404的问题 这里我的 cache management 刷新 缓存已经清好了 可是这边“One or more of the Indexes are not up to date: Product Flat Data. Click here to go to Index Management and rebuild required indexes.” 我就又去清了下Index Management 可是“Product Flat Data ”一直提示”Cannot initialize the indexer process.“ 请教一个有效的方法

  7. 你好,求助一下,Index product and categories URL rewrites,Reindex data的时候发生错误,提示 Fatal error: Maximum execution time of 30 seconds exceeded in /home/content/56/11152756/html/lib/Zend/Db/Statement/Pdo.php on line 228 怎么解决,站内产品比较多,gd的服务器,尝试去改php5.in也没用

评论已关闭。