UCHOME在Nginx下静态化(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就可以了!

相关阅读:   Nginx环境下supesite discuz wordpress静态化

8 Responses to “UCHOME在Nginx下静态化(rewrite)规则”

  1. 少爷 CHINA Mozilla Firefox Windows says:

    这是伪静态还是真正的静态化?

    [Reply]

    久酷 CHINA Mozilla Firefox Windows Reply:

    @少爷, 伪静态规则

    [Reply]

  2. kangzj CHINA Mozilla Firefox Windows says:

    nginx要是和apache的rewrite兼容好了,真是的

    [Reply]

    久酷 CHINA Mozilla Firefox Windows Reply:

    @kangzj, 确实两者之间的不同配置起来有些麻烦 .

    [Reply]

  3. whisperer CHINA Internet Explorer Windows says:

    沙发路过~~~

    [Reply]

    久酷 CHINA Mozilla Firefox Windows Reply:

    @whisperer, 你这家伙也没睡呢……夜猫子 :lol: :lol:

    [Reply]

    whisperer CHINA Internet Explorer Windows Reply:

    @久酷, 年纪轻轻 不做夜猫子是可耻的 :mrgreen:

    [Reply]

    久酷 CHINA Mozilla Firefox Windows Reply:

    @whisperer, 趁年轻,尽情玩吧,哈……

Leave a Reply

:wink: :-| :-x :twisted: :) 8-O :( :roll: :-P :oops: :-o :mrgreen: :lol: :idea: :-D :evil: :cry: 8) :arrow: :-? :?: :!:


正在读取数据……