Magento网址www的设置

magento网址www设置
magento网址www设置

 

网址是SEO中非常重要的部分,在google中带www的网址和不带www的网址可能会被认为是不同的地址,这不利于SEO(当然我们可以通过其它手段来告诉google它们是同一个地址,但,这不是今天的重点)。

Magento对SEO支持是非常好的,进入Magento后台 System->configuration->general->web->Url Options 如上图。

若Auto-redirect to Base URL设置为 “NO”,那么如果使用不带 www的网址访问网站,网址就可能会带有一串字符,形如:http://www.magentokey.com/magento-extension?SID=57d9aa6e923bfa3522442530e68034c0 的地址,那这对于SEO来说真是灾难。

若Auto-redirect to Base URL设置为 “Yes (301 Moved Permanently)”,那么如果是一个不带www的网址访问网站,比如 magentokey.com 或 magentokey.com/magento-extension, 那么页面就会做301跳转到首页。

若Auto-redirect to Base URL设置为 “Yes (302 Found)”,那么如果是一个不带www的网址访问网站,比如 magentokey.com 或 magentokey.com/magento-extension, 那么页面也会跳转到首页,但做的是302跳转。

301和302大家google下其含义,不赘述。

好,到了这里大家就应该明白magento的这个设置了。但是有些人喜欢自己的网址是不带 www 的,和别人正好相反。那么你需要去 System->configuration->general->web->Unsecure和Secure中将你的基础网址设置为不带www的,设置页面如下图。

继续阅读“Magento网址www的设置”

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

设置位置如下图:

继续阅读“magento 网址优化”

magento 去掉index.php .html

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

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

magento网址优化
magento网址优化

继续阅读“magento 去掉index.php .html”