全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 2776|回复: 18
打印 上一主题 下一主题

小夜,来帮帮忙!伪静态问题。

[复制链接]
跳转到指定楼层
1#
发表于 2010-12-25 15:40:22 | 只看该作者 回帖奖励 |正序浏览 |阅读模式
我用的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 编辑 ]
19#
发表于 2010-12-26 17:38:55 | 只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
18#
 楼主| 发表于 2010-12-25 22:22:13 | 只看该作者
错啦 是要 nginx 规则的方法
17#
发表于 2010-12-25 21:52:26 | 只看该作者
楼主搭建的是什么环境?
你的那个伪静态文件是apache的
把它放在你的网站的根目录下面
另外,apache配置文件中需要Allow Override all才行的。
16#
 楼主| 发表于 2010-12-25 21:07:00 | 只看该作者
还是么回答。。。
15#
发表于 2010-12-25 20:54:50 | 只看该作者
原帖由 zisetian 于 2010-12-25 20:20 发表



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


你先用kloxo吧!

lnmp不好上手的,我搞很久了呢
14#
 楼主| 发表于 2010-12-25 20:20:58 | 只看该作者
原帖由 zisetian 于 2010-12-25 17:17 发表
保存在哪个文件夹里?

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

是只添加 include a.conf;

这个代码就可以了么?



这里还是没明白 楼上的。谢谢您啊,能说清楚一点么?
13#
发表于 2010-12-25 20:13:40 | 只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
12#
 楼主| 发表于 2010-12-25 20:08:22 | 只看该作者

回复 11# 的帖子

是的
11#
发表于 2010-12-25 20:05:54 | 只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2025-10-24 21:39 , Processed in 0.081656 second(s), 8 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表