首先应该确保你的服务器环境,达到了magento的运行需求,若你是使用的是magento专用空间就不必担心了,若不是请查看我以前的文章,检测你的运行环境(http://www.hellokeykey.com/magento-system-requirements/)

1.在 system—>configuration中确保下图的设置为 Yes

magento网址优化

magento网址优化

2.在 system—>configuration中确保下图的设置,绿色部分为空,则 .html就从网址中去掉了

magento网址优化

magento网址优化

3.在 system—>cache management 中刷新缓存,还有cache management中的catalog中的缓存也都refresh, clear, rebulid下

4.去前台刷新下页面,it’s done

注意,本例使用magento1.3,其他版本如有不同请注意。

关于网址设置也请参考我的另几篇博文:http://www.hellokeykey.com/magento-details-use-categories-path-for-product-urls/

http://www.hellokeykey.com/magento-details-add-store-code-to-urls/

http://www.hellokeykey.com/magento-rel-canonical-tag/

转载表明出处:www.hellokeykey.com

标签:

17 Responses


  1. 小毛毛 on 25 一 2010

    老大 我觉得你应该把你写 模板的视频给弄出来哟。。。
     

    • key on 25 一 2010

      哈哈,要过些时候才行,这视频太长了,要规划下

  2. 小毛毛 on 25 一 2010

    测试了  ok 通过。。。

  3. 小毛毛 on 25 一 2010

    老大 你说话要算数耶。小弟期待中。。。

  4. yun on 10 一 2011

    钥匙兄,我按照你的步骤设置了,等设置完刷新缓存后。前台点击产品出先了 404页面 请问这是什么情况
    急求解答

    • key on 12 一 2011

      index management这个后台刷新下。

  5. [...] 1.magento模板主题安装 2.magento首页显示产品 3.magento 去掉index.php .html ……其它文章可以通过上面的google站内搜索获取。 [...]

  6. yugongtian on 23 二 2011

    Panel 下面的 index.php 还是去不掉啊。。。

    • key on 24 二 2011

      服务器支持rewrite么?这个一般是可以去掉的。

  7. onssc on 04 四 2011

    Key:
    你好!
    我按照您的方法试了后,除了首页,其它页面全打不开。我想是我的apache没有配置好吧,第一次使用VPS。费了好大劲才安装好基本的MAGENTO环境,免强能运行了。进入后台,也有警告说我的服务器配置不正确:Your web server is configured incorrectly. As a result, configuration files with sensitive information are accessible from the outside. Please contact your hosting provider..于是看了你检测你的运行环境(http://www.hellokeykey.com/magento-system-requirements/)下载了magento-check.php上传到了magento所在根目录。运行www.xxxx.com/magento-check.php打不开。您可以帮我看看。域名你知道的。上面Website里有写到。

    • key on 04 四 2011

      关于这个评论:Your web server is configured incorrectly. As a result, configuration files with sensitive information are accessible from the outside. Please contact your hosting provider 我的博客:http://www.hellokeykey.com/magento-configured-incorrectly/ 有提到,你服务器设置的有问题,公网可以访问你的local.xml文件。域名哪里提到了?你使用的是windows服务器吧,建议使用linux的并且使用magento专用空间。

  8. onssc on 04 四 2011

    Hello Key:
    谢谢你,耐心的回答我的问题,服务器系统是是LINUX,这个WEB环境是我配置的,我是第一次配置,边GOOGLE边配置,很不安全,见笑了。现在只能说能勉强跑Magento了。肯定除了安全问题外,还有很多未知的问题,这个遇到再说吧,检测文件magento-check.php上传到网站根目录并www.xxxx.com/magento-check.php打不开。

  9. onssc on 04 四 2011

    Hello Key:
    谢谢您的回答。公网可以访问你的local.xml文件。因为路径为 app/ect/local.xml,在我安装Magento提示我/app/ect要有写入权限,于是我给这个目录,以及其目录下的所有文件授了777。

    • key on 04 四 2011

      apache设置不可以公网访问。

  10. onssc on 21 四 2011

    Hello Key
    请问一下。我在header.phtml里添加了个__(‘ENEN’) ?>
    我应该在那个.CSV里面写上”ENEN”,”ZHZH”
    随便写在那一个.CSV里面行吗?

  11. onssc on 21 四 2011

    Hello Key
    请问一下。我在header.phtml里添加了个 __(‘ENEN’) ?>
    我应该在那个.CSV里面写上”ENEN”,”ZHZH”
    随便写在那一个.CSV里面行吗?

    • hellokeykey on 21 四 2011

      中文包中的任意csv文件中写上。但是为什么不使用我视频中讲到的在线翻译功能。既然代码中已经写的支持翻译了。


Leave your comment