刚配置了一下nginx添加了uchome静态化规则,记录一下:
rewrite ^/(space|network)\-(.+)\.html$ /$1.php?rewrite=$2 last; rewrite ^/(space|network)\.html$ /$1.php last; rewrite ^/([0-9]+)$ /space.php?uid=$1 last;
OK,很简单! 然后UCHOME后台启用URL Rewrite就可以了!
刚配置了一下nginx添加了uchome静态化规则,记录一下:
rewrite ^/(space|network)\-(.+)\.html$ /$1.php?rewrite=$2 last; rewrite ^/(space|network)\.html$ /$1.php last; rewrite ^/([0-9]+)$ /space.php?uid=$1 last;
OK,很简单! 然后UCHOME后台启用URL Rewrite就可以了!
这是伪静态还是真正的静态化?
[Reply]
久酷
Reply:
October 9th, 2009 at 12:14
@少爷, 伪静态规则
[Reply]
nginx要是和apache的rewrite兼容好了,真是的
[Reply]
久酷
Reply:
October 8th, 2009 at 01:23
@kangzj, 确实两者之间的不同配置起来有些麻烦 .
[Reply]
沙发路过~~~
[Reply]
久酷
Reply:
October 8th, 2009 at 00:52
@whisperer, 你这家伙也没睡呢……夜猫子
[Reply]
whisperer
Reply:
October 8th, 2009 at 00:54
@久酷, 年纪轻轻 不做夜猫子是可耻的
[Reply]
久酷
Reply:
October 8th, 2009 at 00:55
@whisperer, 趁年轻,尽情玩吧,哈……