httpd.ini 如何装换成.htaccess
原来装在windos服务器上的程序,要换的LUNIX服务上,请高手指点啊!!我的QQ:252274469,不胜感激!源文件如下:[ISAPI_Rewrite]#3600=...
原来装在windos服务器上的程序,要换的LUNIX服务上,请高手指点啊!!我的QQ:252274469,不胜感激!
源文件如下:
[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
1楼的高手,你的方法不行啊,是不是有什么要注意的,请说的详细一点 展开
源文件如下:
[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
1楼的高手,你的方法不行啊,是不是有什么要注意的,请说的详细一点 展开
AiPPT
2024-09-19 广告
2024-09-19 广告
随着AI技术的飞速发展,如今市面上涌现了许多实用易操作的AI生成工具1、简介:AiPPT: 这款AI工具智能理解用户输入的主题,提供“AI智能生成”和“导入本地大纲”的选项,生成的PPT内容丰富多样,可自由编辑和添加元素,图表类型包括柱状图...
点击进入详情页
本回答由AiPPT提供
展开全部
RewriteEngine On
# 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
改了一下,试一下把
# 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
改了一下,试一下把
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
2010-01-03
展开全部
RewriteRule /cz/chuzu_([0-9]+)\.html /cz/czdetail\.php\?czid=$1
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询