企业多城市地区目录站群-虚拟主机伪静态规则

这个程序,很多人都说需要vps才能搭建起来,Test玩站网的小弟我测试了一下,虚拟主机也能搭建起来。现放出伪静态规则。

这是win系统的虚拟主机伪静态规则。

  1. # Helicon ISAPI_Rewrite configuration file  
  2. # Version 3.1.0.82  
  3.   
  4. # 将 RewriteEngine 模式打开  
  5. RewriteEngine On  
  6.   
  7. # 修改以下语句中的 / 改为您的系统目录地址,如果程序放在根目录中则无需修改  
  8. RewriteBase /  
  9.   
  10. # Rewrite 系统规则请勿修改RewriteCond %{QUERY_STRING} ^(.*)$  
  11. RewriteRule ^index.html$ index.php  
  12. RewriteRule ^city.html$ city.php  
  13.   
  14.   
  15. #RewriteCond %{QUERY_STRING} ^(.*)$  
  16. #RewriteRule ^(.*)/index.html$ $1/index.php  
  17.   
  18. RewriteCond %{QUERY_STRING} ^(.*)$  
  19. RewriteRule ^([a-z]+)\/(.*).php$ $2.php  
  20.   
  21. RewriteRule ^([a-z]+)\/$ $1\/index.php  
  22.   
  23.   
  24. RewriteCond %{QUERY_STRING} ^(.*)$  
  25. RewriteRule ^about-([0-9]+)-([0-9]+)\.html$ about.php?cid=$1&page=$2  
  26. RewriteCond %{QUERY_STRING} ^(.*)$  
  27. RewriteRule ^news-([0-9]+)-([0-9]+)\.html$ news.php?cid=$1&page=$2  
  28. RewriteCond %{QUERY_STRING} ^(.*)$  
  29. RewriteRule ^newsshow-([0-9]+)-([0-9]+)-([0-9]+)\.html$ newsshow.php?cid=$1&id=$2&page=$3  
  30. RewriteCond %{QUERY_STRING} ^(.*)$  
  31. RewriteRule ^product-([0-9]+)-([0-9]+)\.html$ product.php?cid=$1&page=$2  
  32. RewriteCond %{QUERY_STRING} ^(.*)$  
  33. RewriteRule ^productshow-([0-9]+)-([0-9]+)-([0-9]+)\.html$ productshow.php?cid=$1&id=$2&page=$3  
  34. RewriteCond %{QUERY_STRING} ^(.*)$  
  35. RewriteRule ^case-([0-9]+)-([0-9]+)\.html$ case.php?cid=$1&page=$2  
  36. RewriteCond %{QUERY_STRING} ^(.*)$  
  37. RewriteRule ^caseshow-([0-9]+)-([0-9]+)-([0-9]+)\.html$ caseshow.php?cid=$1&id=$2&page=$3  
  38. RewriteCond %{QUERY_STRING} ^(.*)$  
  39. RewriteRule ^job-([0-9]+)\.html$ join.php?page=$1  
  40. RewriteCond %{QUERY_STRING} ^(.*)$  
  41. RewriteRule ^joinshow-([0-9]+)\.html$ joinshow.php?id=$1  
  42. RewriteCond %{QUERY_STRING} ^(.*)$  
  43. RewriteRule ^message-([0-9]+)\.html$ message.php?page=$1  
  44. RewriteCond %{QUERY_STRING} ^(.*)$  
  45. RewriteRule ^contact-([0-9]+)-([0-9]+)\.html$ contact.php?cid=$1&page=$2  
  46. RewriteCond %{QUERY_STRING} ^(.*)$  
  47. RewriteRule ^soft-([0-9]+)-([0-9]+)\.html$ soft.php?cid=$1&page=$2  
  48. RewriteCond %{QUERY_STRING} ^(.*)$  
  49. RewriteRule ^softshow-([0-9]+)-([0-9]+)-([0-9]+)\.html$ softshow.php?cid=$1&id=$2&page=$3  
  50. RewriteCond %{QUERY_STRING} ^(.*)$  
  51. RewriteRule ^goods-([0-9]+)-([0-9]+)-([0-9]+)\.html$ goods.php?cid=$1&tid=$2&page=$3  
  52. RewriteCond %{QUERY_STRING} ^(.*)$  
  53. RewriteRule ^goodsshow-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)\.html$ goodsshow.php?cid=$1&tid=$2&id=$3&page=$4  
  54. RewriteCond %{QUERY_STRING} ^(.*)$  
  55. RewriteRule ^vote-([0-9]+)\.html$ vote.php?id=$1  
  56. RewriteCond %{QUERY_STRING} ^(.*)$  
  57. RewriteRule ^(\w+)\.html$ $1.php?  
  58. RewriteRule ^4g-([a-z]+)-([0-9]+)-([0-9]+)\.html$ 4g.php?m=$1&cid=$2&page=$3  

大家复制,然后保存文件名.htaccess 。上传根目录就行啦

这是linux主机的伪静态规则

  1. RegistrationName=Longshui Chen  
  2. RegistrationCode=7Z3NU-7MAP5-JZDPH-PR9GK  
  3. [ISAPI_Rewrite]  
  4. CacheClockRate 3600  
  5. RepeatLimit 32  
  6.   
  7. #请在下面加入自己的代码例如  
  8. #RewriteRule /index.html /index.php  
  9.   
  10. <IfModule mod_rewrite.c>  
  11. RewriteEngine On  
  12. RewriteCond %{QUERY_STRING} ^(.*)$  
  13. RewriteRule ^(.*)/index.html$ $1/index.php  
  14. RewriteCond %{QUERY_STRING} ^(.*)$  
  15. RewriteRule ^(.*)/about-([0-9]+)-([0-9]+)\.html$ $1/about.php?cid=$2&page=$3  
  16. RewriteCond %{QUERY_STRING} ^(.*)$  
  17. RewriteRule ^(.*)/news-([0-9]+)-([0-9]+)\.html$ $1/news.php?cid=$2&page=$3  
  18. RewriteCond %{QUERY_STRING} ^(.*)$  
  19. RewriteRule ^(.*)/newsshow-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1/newsshow.php?cid=$2&id=$3&page=$4  
  20. RewriteCond %{QUERY_STRING} ^(.*)$  
  21. RewriteRule ^(.*)/product-([0-9]+)-([0-9]+)\.html$ $1/product.php?cid=$2&page=$3  
  22. RewriteCond %{QUERY_STRING} ^(.*)$  
  23. RewriteRule ^(.*)/productshow-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1/productshow.php?cid=$2&id=$3&page=$4  
  24. RewriteCond %{QUERY_STRING} ^(.*)$  
  25. RewriteRule ^(.*)/case-([0-9]+)-([0-9]+)\.html$ $1/case.php?cid=$2&page=$3  
  26. RewriteCond %{QUERY_STRING} ^(.*)$  
  27. RewriteRule ^(.*)/caseshow-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1/caseshow.php?cid=$2&id=$3&page=$4  
  28. RewriteCond %{QUERY_STRING} ^(.*)$  
  29. RewriteRule ^(.*)/join-([0-9]+)\.html$ $1/join.php?page=$2  
  30. RewriteCond %{QUERY_STRING} ^(.*)$  
  31. RewriteRule ^(.*)/joinshow-([0-9]+)\.html$ $1/joinshow.php?id=$2  
  32. RewriteCond %{QUERY_STRING} ^(.*)$  
  33. RewriteRule ^(.*)/message-([0-9]+)\.html$ $1/message.php?page=$2  
  34. RewriteCond %{QUERY_STRING} ^(.*)$  
  35. RewriteRule ^(.*)/contact-([0-9]+)-([0-9]+)\.html$ $1/contact.php?cid=$2&page=$3  
  36. RewriteCond %{QUERY_STRING} ^(.*)$  
  37. RewriteRule ^(.*)/soft-([0-9]+)-([0-9]+)\.html$ $1/soft.php?cid=$2&page=$3  
  38. RewriteCond %{QUERY_STRING} ^(.*)$  
  39. RewriteRule ^(.*)/softshow-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1/softshow.php?cid=$2&id=$3&page=$4  
  40. RewriteCond %{QUERY_STRING} ^(.*)$  
  41. RewriteRule ^(.*)/goods-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1/goods.php?cid=$2&tid=$3&page=$4  
  42. RewriteCond %{QUERY_STRING} ^(.*)$  
  43. RewriteRule ^(.*)/goodsshow-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1/goodsshow.php?cid=$2&tid=$3&id=$4&page=$5  
  44. RewriteCond %{QUERY_STRING} ^(.*)$  
  45. RewriteRule ^(.*)/vote-([0-9]+)\.html$ $1/vote.php?id=$2  
  46. RewriteCond %{QUERY_STRING} ^(.*)$  
  47.   
  48. RewriteRule ^(.*)/(\w+)\.html$ $1/$2.php?  
  49. </IfModule>  

保存文件名httpd.conf 。上传根目录就行。

对应的程序地址:<企业多城市地区目录站群带手机端(三套整站源码)>

--------------------------------------------------end

1.本站资源均为免登陆下载,直接扫码支付即可下载
2.目前仅支持支付宝扫码支付
3.客服QQ:3013197813
4.本站大部分下载资源收集于网络,只做学习和交流使用,版权归原作者所有!
5. 不得使用于非法商业用途,不得违反国家法律。否则后果自负!
Test玩站网 » 企业多城市地区目录站群-虚拟主机伪静态规则

常见问题FAQ

玩站小弟QQ没回怎么办?
防止QQ秀逗,大家可以通过:
加QQ群:联系小弟拉你~
发QQ邮箱给玩站小弟[email protected]
扫描右边的微信二维码

发表评论

Test玩站网专注全网精品资源!

QQ咨询 加入Q群