magento change xml

piaoling  2012-09-06 17:02:13

       $node = Mage::getConfig()->getNode('maxcache/cache/type');         Zend_Debug::dump($node);         $parentNode = Mage::getConfig()->getNode('maxcache/cache');         Zend_Debug::dump($parentNode); //change child named 'type' value to be test         $parentNode->setNode('type','test',true);         Zend_Debug::dump($p......

类别 :  magento(258)  |  浏览(3636)  |  评论(0)

Remove category path from product URL in magento

piaoling  2012-09-04 22:58:46

As great as Magento is there are a number of failings it can have from an search engine optimisation point of view and one of the biggest bugbears our SEO consultants have had with it is the number of different URLs a product can be accessed on. If product a is in category 1 and two then by default magento will create links to it on the following URLs. www.mystore.com/category-1/product-a.html www.mystore.com/category-2/product-a.html www.mystore.com/product-a.html This can cause duplicate content issues from a search engine point of view. One solutio......

类别 :  默认(739)  |  浏览(9186)  |  评论(0)

php code format

piaoling  2012-08-28 11:47:47

code format......

类别 :  默认(739)  |  浏览(2890)  |  评论(0)

ubuntu 网络

piaoling  2012-08-24 09:18:13

1. 检验是否可以连通,就使用ping命令ping 网关开始的时候总是现实unreachable 2. 设置IP sudo ifconfig eth0 133.133.133.190 netmask 255.255.255.0这样就算设置好了网卡eth0的IP地址和子网掩码 3. 设置网关 sudo route add default gw 133.133.133.40 4. ping 网关就可以ping通了 5. 设置Ubuntu DNS 修改/etc/resolv.conf,在其中加入 nameserver DNS的地址1 nameserver DNS的地址2 把上面的地址改成你自己的试下,我的也是ubuntu,之前也出现过不能上网的情况,我这边因为能ping通路由器,所以......

类别 :  默认(739)  |  浏览(3115)  |  评论(0)

Magento base url without store code

piaoling  2012-08-23 11:42:53

 $url = Mage::getConfig()->substDistroServerVars('{{base_url}}'); //baseurl Zend_Debug::dump($url);......

类别 :  默认(739)  |  浏览(3002)  |  评论(0)

邮箱设置与备份

piaoling  2012-08-22 13:43:26

邮箱设置与备份,点击此处下载 ......

类别 :  默认(739)  |  浏览(3167)  |  评论(0)

睡着觉

piaoling  2012-08-20 00:52:20

引导语:根据医学和多数人的体验、观察,一个人真正睡着觉最多只有两个钟头,其余都是浪费时间,躺在枕头上做梦,没有哪个人不做梦。至于醒来觉得自己没有做梦,那是因为他忘记了。     睡觉的诀窍    通常一个人睡两个钟头就够了,为什么有人要睡七、八个钟头?那是你赖床躺在枕头上休息的习惯养成的,并非我们需要那么久的睡眠时间,尤其打坐做功夫的人 晓得,正午只要闭眼真正睡着三分钟......

类别 :  默认(739)  |  浏览(3624)  |  评论(0)

Apache Rewrite实现URL的跳转和域名跳转

piaoling  2012-08-20 00:32:17

Apache Rewrite实现URL的跳转和域名跳转 Rewirte主要的功能就是实现URL的跳转,它的正则表达式是基于Perl语言。可 基 于服务器级的(httpd.conf)和目录级的 (.htaccess)两种方式。如果要想用到rewrite模块,必须先安装或加载rewrite模块。方法有两种一种是编译apache的时候就直接 安装rewrite模块,别一种是编译apache时以DSO模式安装apache,然后再利用源码和apxs来安装rewrite模块。 基于服务器级的(httpd.conf)有两种方法,一种是在httpd.conf的全局下直接利用RewriteEngine ......

类别 :  apache(12)  |  浏览(5022)  |  评论(0)

apache rewrite

piaoling  2012-08-20 00:13:07

<IfModule mod_rewrite.c> ############################################ ## enable rewrites     Options +FollowSymLinks     RewriteEngine on #将result?q=**重写到result/index/q/**     RewriteCond %{REQUEST_URI} ^(.*)/result(.*)$     RewriteCond %{QUERY_STRING} ^q=(.*)$       RewriteRule ^(.*)/result(.*)$ http://%{HTTP_HOST}/$1/result/index/q/%1? [R=301,L]     RewriteCond %{THE_REQUEST} ^.*/index.php     RewriteRule ^(.*)index.php$ http://www.domain.com/zh/$1 [R=301,L] &n......

类别 :  apache(12)  |  浏览(4239)  |  评论(0)

Rabbitcvs install

piaoling  2012-08-16 17:05:42

Download it from here. install it,and then run $nautilus -q detail: http://wiki.rabbitvcs.org/wiki/install/ubuntu ......

类别 :  svn(3)  |  浏览(4156)  |  评论(0)
  • Page:19/144  1439 Blogs
    <<
    >>
    20088
    周日 周一 周二 周三 周四 周五 周六

    文章分类