分享

写回答

发帖

[提问] linux空间伪静态怎么弄?

GoDaddy GoDaddy 726 人阅读 | 5 人回复

发表于 2011-8-5 12:02:51 | 显示全部楼层 |阅读模式

刚传了一个程序,用的是伪静态,里面的伪静态文件是httpd.ini,这个是不是win服务器上用的?我的好似linux,把里面的复制到.htaccess也不行,不懂伪静态哪位能帮帮忙?
httpd.ini的内容如下
[ISAPI_Rewrite]
# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
# Block external access to the httpd.ini and httpd.parse.errors files
RewriteRule /httpd(?:\.ini|\.parse\.errors).* / [F,I,O]
# Block external access to the Helper ISAPI Extension
RewriteRule .*\.isrwhlp / [F,I,O]
RewriteRule /index\.html /index\.php
RewriteRule /sitemap.htm /sitemap.php
RewriteRule /([a-zA-Z0-9]*)/([a-zA-Z0-9]*)\.html /$1/$2\.php
RewriteRule /([a-zA-Z0-9]*)/(.*)detail_([0-9]+)\.html /$1/$2detail\.php\?$2id=$3
RewriteRule /([a-zA-Z0-9]*)/index_([0-9]+)\.html /$1/index\.php\?PageNo=$2
RewriteRule /news/news_([0-9]+)\.html /news/news\.php\?newsclassid=$1
RewriteRule /news/news_([0-9]+)_([0-9]+)\.html /news/news\.php\?newsclassid=$1&PageNo=$2
RewriteRule /cz/chuzu_([0-9]+)\.html /cz/czdetail\.php\?czid=$1
RewriteRule /cs/chushou_([0-9]+)\.html /cs/csdetail\.php\?csid=$1
RewriteRule /qz/qiuzu_([0-9]+)\.html /qz/qzdetail\.php\?qzid=$1
RewriteRule /qg/qiugou_([0-9]+)\.html /qg/qgdetail\.php\?qgid=$1
RewriteRule /zhidao/question_([0-9]+)\.html /zhidao/question\.php\?id=$1

# RewriteRule /zp/index_(.*)_([0-9]+)\.html /zp/index\.php\?company=$1&PageNo=$2
# RewriteRule /zp/company_([0-9]+)\.html /zp/company\.php\?comid=$1
# RewriteRule /jianzhao/index_(.*)_([0-9]+)\.html /jianzhao/index\.php\?keyword=$1&PageNo=$2

回答|共 5 个

javachenheng

发表于 2011-8-5 13:16:20 | 显示全部楼层

有人会把httpd.ini转成htaccess吗?
回复 支持 反对

使用道具 举报

lwbo1987

发表于 2011-8-5 13:42:19 | 显示全部楼层

什么程序
回复 支持 反对

使用道具 举报

javachenheng

发表于 2011-8-5 13:47:49 | 显示全部楼层

回复 4# 的帖子

别人写的程序 规则是iis的,用的godaddy apache规则需要改一下 但是不会
回复 支持 反对

使用道具 举报

javachenheng

发表于 2011-8-5 16:14:16 | 显示全部楼层

高手帮帮忙啊
回复 支持 反对

使用道具 举报

lwbo1987

发表于 2011-8-5 16:17:59 | 显示全部楼层

回复 6# 的帖子

网上搜索看看能否有在线编辑转换的
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则