今天完成了淘客帝国4.0免费版(现在升级到4.2了)网页模板修改及nginx下伪静态,付费版很省心,不过有些网站才做不知道怎么样,99元增加域名授权也划不来,最主要的还是大家的模板都一样。
其实自己玩免费版也挺有意思。nginx下开启伪静态方法如下:
下面这些东西是默认的,和index.php 及list.php要对应,如果不喜欢这种规则可以自己改,不过改起来挺麻烦的。总的来说需要伟静态的页面无非是list页面,shop页面,search页面和product页面,最重要的是list和product页面,这二个必须保证正确。下面这些代码供参考。注意我发现不做为静态对百度来说也没太大关系,演示站已经取消伟静态了。
演示网站:海飞丝洗发水
rewrite (.+)product\.php/([0-9]+)\.html$ $1product.php?iid=$2 last;
rewrite (.+)list\.php/([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)-(.+)-([0-9]+)\.html$ $1list.php?catid=$2&sortnum=$3&sp=$4&ep=$5&q=$6&page=$7 last;
rewrite (.+)list\.php/([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)-\.html$ $1list.php?catid=$2&sortnum=$3&sp=$4&ep=$5 last;
rewrite (.+)list\.php/([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)-(.+)\.html$ $1list.php?catid=$2&sortnum=$3&sp=$4&ep=$5&q=$6 last;
rewrite (.+)list\.php/([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)-\.html$ $1list.php?catid=$2&sortnum=$3&sp=$4&ep=$5 last;
rewrite (.+)list\.php/([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1list.php?catid=$2&sortnum=$3&sp=$4&ep=$5 last;
rewrite (.+)list\.php/([0-9]+)-([0-9]+)\.html$ $1list.php?catid=$2&sortnum=$3 last;
rewrite (.+)list\.php/([0-9]+)\.html$ $1list.php?catid=$2 last;
rewrite (.+)shop\.php/(.+)-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1/shop.php?user=$2&sortnum=$3&sp=$4&ep=$5&page=$6 last;
rewrite (.+)shop\.php/(.+)-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1/shop.php?user=$2&sortnum=$3&sp=$4&ep=$5 last;
rewrite (.+)shop\.php/(.+)-([0-9]+)\.html$ $1/shop.php?user=$2&sortnum=$3 last;
rewrite (.+)shop\.php/(.+)\.html$ $1/shop.php?user=$2 last;
rewrite (.+)product\.php/([0-9]+)\.html$ $1product.php?iid=$2 last;
rewrite (.+)list\.php/([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)-(.+)-([0-9]+)\.html$ $1list.php?catid=$2&sortnum=$3&sp=$4&ep=$5&q=$6&page=$7 last;
rewrite (.+)list\.php/([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)-(.+)\.html$ $1list.php?catid=$2&sortnum=$3&sp=$4&ep=$5&q=$6 last;
rewrite (.+)list\.php/([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)-\.html$ $1list.php?catid=$2&sortnum=$3&sp=$4&ep=$5 last;
rewrite (.+)list\.php/([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)-\.html$ $1list.php?catid=$2&sortnum=$3&sp=$4&ep=$5 last;
rewrite (.+)list\.php/([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1list.php?catid=$2&sortnum=$3&sp=$4&ep=$5 last;
rewrite (.+)list\.php/([0-9]+)-([0-9]+)\.html$ $1list.php?catid=$2&sortnum=$3 last;
rewrite (.+)list\.php/([0-9]+)\.html$ $1list.php?catid=$2 last;
rewrite (.+)shop\.php/(.+)-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1/shop.php?user=$2&sortnum=$3&sp=$4&ep=$5&page=$6 last;
rewrite (.+)shop\.php/(.+)-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1/shop.php?user=$2&sortnum=$3&sp=$4&ep=$5 last;
rewrite (.+)shop\.php/(.+)-([0-9]+)\.html$ $1/shop.php?user=$2&sortnum=$3 last;
rewrite (.+)shop\.php/(.+)\.html$ $1/shop.php?user=$2 last;
- (2012-03-04 15:58:15)
- (2012-02-12 22:33:11)
- (2012-02-11 20:23:50)
- (2012-01-23 15:14:59)
- (2011-12-05 22:36:00)
- (2011-11-08 21:02:43)
- (2011-11-07 23:58:00)
- (2011-11-02 22:56:20)
- (2011-10-12 17:14:56)
- (2011-09-27 22:05:55)