全球主机交流论坛

标题: 小夜,来帮帮忙!伪静态问题。 [打印本页]

作者: zisetian    时间: 2010-12-25 15:40
标题: 小夜,来帮帮忙!伪静态问题。
我用的LNMP一键安装包装的84的VPS

遇到3个问题。

1.伪静态的问题。不知道如何操作。我的 .htaccess 文件代码如下.
  1. RewriteEngine On
  2. RewriteBase /


  3. RewriteRule index\.html$ /index\.php
  4. RewriteRule fenlei\.html$ /fenlei\.php
  5. RewriteRule help/index\.html$ /help/index\.php
  6. RewriteRule help/cjwt\.html$ /help/cjwt\.php
  7. RewriteRule help/fxlc\.html$ /help/fxlc\.php
  8. RewriteRule help/lxwm\.html$ /help/lxwm\.php
  9. RewriteRule help/tgjh\.html$ /help/tgjh\.php
  10. RewriteRule mulu-sp-(.*)-ep-(.*)-cid-(.*)-sr-(.*)-area-(.*)-q-(.*)-liebiao-(.*)-page-(.*)\.html$ /list\.php\?sp=$1&ep=$2&cid=$3&sr=$4&area=$5&q=$6&liebiao=$7&page=$8
  11. RewriteRule mulu-(.*)\.html$ /list\.php\?cid=$1
  12. RewriteRule search-sp-(.*)-ep-(.*)-cid-(.*)-sr-(.*)-area-(.*)-q-(.*)-liebiao-(.*)-page-(.*)\.html$ /search\.php\?sp=$1&ep=$2&cid=$3&sr=$4&area=$5&q=$6&liebiao=$7&page=$8
  13. RewriteRule search-(.*)\.html$ /search\.php\?q=$1
  14. RewriteRule searchdp-q-(.*)\.html$ /searchdp\.php\?q=$1
  15. RewriteRule searchdp-q-(.*)\.html$ /searchdp\.php\?q=$1
  16. RewriteRule searchdp-sp-(.*)-ep-(.*)-cid-(.*)-sr-(.*)-area-(.*)-q2-(.*)-liebiao-(.*)-page-(.*).html /searchdp\.php\?sp=$1&ep=$2&cid=$3&sr=$4&area=$5&q=$6&liebiao=$7&page=$8
  17. RewriteRule searchdp1-sp-(.*)-ep-(.*)-cid-(.*)-sr-(.*)-area-(.*)-q2-(.*)-liebiao-(.*)-page-(.*).html /searchdp\.php\?sp=$1&ep=$2&cid=$3&sr=$4&area=$5&q=$6&liebiao=$7&page=$8
  18. RewriteRule tao-(.*)\.html$ /view\.php\?niid=$1
复制代码
2.这个伪静态放在哪里?如何操作?

3.我在84的VPS上放的是一个淘宝客API的程序,似乎运行起来很慢?为什么呢?

麻烦小夜了。

[ 本帖最后由 zisetian 于 2010-12-25 16:25 编辑 ]
作者: zisetian    时间: 2010-12-25 15:59
没人理会人家嘛!!!
作者: zisetian    时间: 2010-12-25 16:54
依然无人理。。。。。我的心要碎了。
作者: 小白    时间: 2010-12-25 16:56
好 楼下来
作者: tc101    时间: 2010-12-25 17:01
提示: 作者被禁止或删除 内容自动屏蔽
作者: zisetian    时间: 2010-12-25 17:07
原帖由 tc101 于 2010-12-25 17:01 发表

楼主是男的还是女的?
女的我可以帮你试试

。。。。 你欺负人。
作者: dianso    时间: 2010-12-25 17:13
rewrite /index\.html$ /index\.php;
rewrite /fenlei\.html$ /fenlei\.php;
rewrite /help/index\.html$ /help/index\.php;
rewrite /help/cjwt\.html$ /help/cjwt\.php;
rewrite /help/fxlc\.html$ /help/fxlc\.php;
rewrite /help/lxwm\.html$ /help/lxwm\.php;
rewrite /help/tgjh\.html$ /help/tgjh\.php;
rewrite /mulu-sp-(.*)-ep-(.*)-cid-(.*)-sr-(.*)-area-(.*)-q-(.*)-liebiao-(.*)-page-(.*)\.html$ /list\.php\?sp=$1&ep=$2&cid=$3&sr=$4&area=$5&q=$6&liebiao=$7&page=$8;
rewrite /mulu-(.*)\.html$ /list\.php\?cid=$1;
rewrite /search-sp-(.*)-ep-(.*)-cid-(.*)-sr-(.*)-area-(.*)-q-(.*)-liebiao-(.*)-page-(.*)\.html$ /search\.php\?sp=$1&ep=$2&cid=$3&sr=$4&area=$5&q=$6&liebiao=$7&page=$8;
rewrite /search-(.*)\.html$ /search\.php\?q=$1;
rewrite /searchdp-q-(.*)\.html$ /searchdp\.php\?q=$1;
rewrite /searchdp-q-(.*)\.html$ /searchdp\.php\?q=$1;
rewrite /searchdp-sp-(.*)-ep-(.*)-cid-(.*)-sr-(.*)-area-(.*)-q2-(.*)-liebiao-(.*)-page-(.*).html /searchdp\.php\?sp=$1&ep=$2&cid=$3&sr=$4&area=$5&q=$6&liebiao=$7&page=$8;
rewrite /searchdp1-sp-(.*)-ep-(.*)-cid-(.*)-sr-(.*)-area-(.*)-q2-(.*)-liebiao-(.*)-page-(.*).html /searchdp\.php\?sp=$1&ep=$2&cid=$3&sr=$4&area=$5&q=$6&liebiao=$7&page=$8;
rewrite /tao-(.*)\.html$ /view\.php\?niid=$1;


保存为a.conf

去nginx conf文件夹把你域名配置文件里里面添加上这个conf文件,然后重启nginx
作者: zisetian    时间: 2010-12-25 17:17
标题: 回复 7# 的帖子
保存在哪个文件夹里?

域名配置文件里里面添加上这个conf文件

是只添加 include a.conf;

这个代码就可以了么?
作者: zisetian    时间: 2010-12-25 19:04
来帮助帮助可怜我的吧
作者: zisetian    时间: 2010-12-25 19:55
原帖由 zisetian 于 2010-12-25 17:17 发表
保存在哪个文件夹里?

域名配置文件里里面添加上这个conf文件

是只添加 include a.conf;

这个代码就可以了么?



来看看吧。。。。就这个问题咯 各位老师!
作者: aooyoo    时间: 2010-12-25 20:05
提示: 作者被禁止或删除 内容自动屏蔽
作者: zisetian    时间: 2010-12-25 20:08
标题: 回复 11# 的帖子
是的
作者: aooyoo    时间: 2010-12-25 20:13
提示: 作者被禁止或删除 内容自动屏蔽
作者: zisetian    时间: 2010-12-25 20:20
原帖由 zisetian 于 2010-12-25 17:17 发表
保存在哪个文件夹里?

域名配置文件里里面添加上这个conf文件

是只添加 include a.conf;

这个代码就可以了么?



这里还是没明白 楼上的。谢谢您啊,能说清楚一点么?
作者: z5322125    时间: 2010-12-25 20:54
原帖由 zisetian 于 2010-12-25 20:20 发表



这里还是没明白 楼上的。谢谢您啊,能说清楚一点么?


你先用kloxo吧!

lnmp不好上手的,我搞很久了呢
作者: zisetian    时间: 2010-12-25 21:07
还是么回答。。。
作者: flylight    时间: 2010-12-25 21:52
楼主搭建的是什么环境?
你的那个伪静态文件是apache的
把它放在你的网站的根目录下面
另外,apache配置文件中需要Allow Override all才行的。
作者: zisetian    时间: 2010-12-25 22:22
错啦 是要 nginx 规则的方法
作者: idexinyang    时间: 2010-12-26 17:38
提示: 作者被禁止或删除 内容自动屏蔽




欢迎光临 全球主机交流论坛 (https://sunk.eu.org/) Powered by Discuz! X3.4