有这样提供伪静态规则的么???????
下面的伪静态规则是我下载的官方程序中的,我拷贝下来而已。[*]
[*]# Destoon B2B Rewrite Rules
[*]ErrorDocument 404 /404.php
[*]RewriteEngine On
[*]RewriteBase /
[*]RewriteRule ^(.*)\.(asp|aspx|asa|asax|dll|jsp|cgi|fcgi|pl)(.*)$ /404.php
[*]RewriteRule ^(.*)-htm-(.*)$ $1.php?$2
[*]RewriteRule ^(.*)/show-(+)([\-])?(+)?\.html$ $1/show.php?itemid=$2&page=$4
[*]RewriteRule ^(.*)/list-(+)([\-])?(+)?\.html$ $1/list.php?catid=$2&page=$4
[*]RewriteRule ^(.*)/show/(+)/(+)?([/])?$ $1/show.php?itemid=$2&page=$3
[*]RewriteRule ^(.*)/list/(+)/(+)?([/])?$ $1/list.php?catid=$2&page=$3
[*]RewriteRule ^(.*)/(+)/(.*)\.shtml$ $1/$2/index.php?rewrite=$3
[*]RewriteRule ^(com)/(+)/(+)/(.*)\.html$ index.php?homepage=$2&rewrite=$4
[*]RewriteRule ^(com)/(+)/(+)([/])?$ index.php?homepage=$2
[*]RewriteRule ^(com)/(+)([/])?$ index.php?homepage=$2
[*]# Apache .conf Rules (Replace line 12 & line 13 & line 14)
[*]#RewriteRule ^(.*)/com/(+)/(+)/(.*)\.html$ $1/company/$3/index.php?homepage=$2&rewrite=$4
[*]#RewriteRule ^(.*)/com/(+)/(+)([/])?$ $1/company/$3/index.php?homepage=$2
[*]#RewriteRule ^(.*)/com/(+)([/])?$ $1/company/index.php?homepage=$2
[*]复制代码
请问您这行是要做什么?
RewriteRule ^(.*)\.(asp|aspx|asa|asax|dll|jsp|cgi|fcgi|pl)(.*)$ /404.php
所有的不相关的asp都映射到 404 去?
我想问一下,难道一个服务器全部都是 php,没有asp的啊?
其他的asp不是全部死翘翘了?
伪静态应该只关注自己就可以了。
管那么宽的范围做什么?
谁来给解释一下,为什么要这样子写这条语句?
原因是什么?????????
其他人的网站居然没有被弄死????????
这个伪静态规则是针对某一域名的,你同一域名下搞那么多后缀干吗?
再说,如果别人传了木马,非php的,没有这一句 ,你不就完了吗?
这个规则跟服务器无关,主要是针对某域名下面的。。。
持续关注中。。。。。
页:
[1]