企业多城市地区目录站群-虚拟主机伪静态规则
这个程序,很多人都说需要vps才能搭建起来,Test玩站网的小弟我测试了一下,虚拟主机也能搭建起来。现放出伪静态规则。
这是win系统的虚拟主机伪静态规则。
- # Helicon ISAPI_Rewrite configuration file
- # Version 3.1.0.82
- # 将 RewriteEngine 模式打开
- RewriteEngine On
- # 修改以下语句中的 / 改为您的系统目录地址,如果程序放在根目录中则无需修改
- RewriteBase /
- # Rewrite 系统规则请勿修改RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^index.html$ index.php
- RewriteRule ^city.html$ city.php
- #RewriteCond %{QUERY_STRING} ^(.*)$
- #RewriteRule ^(.*)/index.html$ $1/index.php
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^([a-z]+)\/(.*).php$ $2.php
- RewriteRule ^([a-z]+)\/$ $1\/index.php
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^about-([0-9]+)-([0-9]+)\.html$ about.php?cid=$1&page=$2
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^news-([0-9]+)-([0-9]+)\.html$ news.php?cid=$1&page=$2
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^newsshow-([0-9]+)-([0-9]+)-([0-9]+)\.html$ newsshow.php?cid=$1&id=$2&page=$3
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^product-([0-9]+)-([0-9]+)\.html$ product.php?cid=$1&page=$2
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^productshow-([0-9]+)-([0-9]+)-([0-9]+)\.html$ productshow.php?cid=$1&id=$2&page=$3
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^case-([0-9]+)-([0-9]+)\.html$ case.php?cid=$1&page=$2
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^caseshow-([0-9]+)-([0-9]+)-([0-9]+)\.html$ caseshow.php?cid=$1&id=$2&page=$3
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^job-([0-9]+)\.html$ join.php?page=$1
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^joinshow-([0-9]+)\.html$ joinshow.php?id=$1
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^message-([0-9]+)\.html$ message.php?page=$1
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^contact-([0-9]+)-([0-9]+)\.html$ contact.php?cid=$1&page=$2
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^soft-([0-9]+)-([0-9]+)\.html$ soft.php?cid=$1&page=$2
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^softshow-([0-9]+)-([0-9]+)-([0-9]+)\.html$ softshow.php?cid=$1&id=$2&page=$3
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^goods-([0-9]+)-([0-9]+)-([0-9]+)\.html$ goods.php?cid=$1&tid=$2&page=$3
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^goodsshow-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)\.html$ goodsshow.php?cid=$1&tid=$2&id=$3&page=$4
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^vote-([0-9]+)\.html$ vote.php?id=$1
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^(\w+)\.html$ $1.php?
- RewriteRule ^4g-([a-z]+)-([0-9]+)-([0-9]+)\.html$ 4g.php?m=$1&cid=$2&page=$3
大家复制,然后保存文件名.htaccess 。上传根目录就行啦
这是linux主机的伪静态规则
- RegistrationName=Longshui Chen
- RegistrationCode=7Z3NU-7MAP5-JZDPH-PR9GK
- [ISAPI_Rewrite]
- CacheClockRate 3600
- RepeatLimit 32
- #请在下面加入自己的代码例如
- #RewriteRule /index.html /index.php
- <IfModule mod_rewrite.c>
- RewriteEngine On
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^(.*)/index.html$ $1/index.php
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^(.*)/about-([0-9]+)-([0-9]+)\.html$ $1/about.php?cid=$2&page=$3
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^(.*)/news-([0-9]+)-([0-9]+)\.html$ $1/news.php?cid=$2&page=$3
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^(.*)/newsshow-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1/newsshow.php?cid=$2&id=$3&page=$4
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^(.*)/product-([0-9]+)-([0-9]+)\.html$ $1/product.php?cid=$2&page=$3
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^(.*)/productshow-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1/productshow.php?cid=$2&id=$3&page=$4
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^(.*)/case-([0-9]+)-([0-9]+)\.html$ $1/case.php?cid=$2&page=$3
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^(.*)/caseshow-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1/caseshow.php?cid=$2&id=$3&page=$4
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^(.*)/join-([0-9]+)\.html$ $1/join.php?page=$2
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^(.*)/joinshow-([0-9]+)\.html$ $1/joinshow.php?id=$2
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^(.*)/message-([0-9]+)\.html$ $1/message.php?page=$2
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^(.*)/contact-([0-9]+)-([0-9]+)\.html$ $1/contact.php?cid=$2&page=$3
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^(.*)/soft-([0-9]+)-([0-9]+)\.html$ $1/soft.php?cid=$2&page=$3
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^(.*)/softshow-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1/softshow.php?cid=$2&id=$3&page=$4
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^(.*)/goods-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1/goods.php?cid=$2&tid=$3&page=$4
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^(.*)/goodsshow-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1/goodsshow.php?cid=$2&tid=$3&id=$4&page=$5
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^(.*)/vote-([0-9]+)\.html$ $1/vote.php?id=$2
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^(.*)/(\w+)\.html$ $1/$2.php?
- </IfModule>
保存文件名httpd.conf 。上传根目录就行。
对应的程序地址:<企业多城市地区目录站群带手机端(三套整站源码)>
--------------------------------------------------end
1.本站资源均为免登陆下载,直接扫码支付即可下载
2.站点支持支付宝扫码支付,更多支付方式联系客服QQ!
3.客服QQ:3013197813,822674928
4.本站大部分下载资源收集于网络,只做学习和交流使用,版权归原作者所有!
5. 不得使用于非法商业用途,不得违反国家法律。否则后果自负!
Test玩站网 » 企业多城市地区目录站群-虚拟主机伪静态规则
2.站点支持支付宝扫码支付,更多支付方式联系客服QQ!
3.客服QQ:3013197813,822674928
4.本站大部分下载资源收集于网络,只做学习和交流使用,版权归原作者所有!
5. 不得使用于非法商业用途,不得违反国家法律。否则后果自负!
Test玩站网 » 企业多城市地区目录站群-虚拟主机伪静态规则
常见问题FAQ
- 玩站小弟QQ没回怎么办?