服务器之家

服务器之家 > 正文

骑士人才系统伪静态设置教程

时间:2020-11-04 11:05     来源/作者:源码之家

骑士人才系统的伪静态虽然没有做到100%全部伪静态,不过就具体情况来说也算是够用,下面就和大家分享一下,骑士人才系统伪静态设置方法。

通常情况下,你只需要将程序里附带的伪静态规则上传到网站根目录下即可。没找到规则的朋友可以将下面的伪静态规则复制下来,做成.htaccess文件放到网站根目录。

  1. RewriteEngine On 
  2. RewriteBase / 
  3. # Rewrite规则 
  4.  
  5. RewriteRule ^index\.htm$ index\.php 
  6. RewriteRule ^jobs/jobs-show-([0-9]+)\.htm$ jobs/jobs-show\.php\?id=$1 
  7. RewriteRule ^jobs/jobs-list-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)\.htm$ jobs/jobs-list\.php\?category=$1&subclass=$2&district=$3&sdistrict=$4&settr=$5&trade=$6&wage=$7&nature=$8&scale=$9&inforow=$10&sort=$11&key=$12&page=$13 
  8. RewriteRule ^jobs/jobs-contrast-(.*)\.htm$ jobs/jobs-contrast\.php\?id=$1 
  9. RewriteRule ^jobs/map-search-([0-9]+)\.htm$ jobs/map-search\.php\?id=$1 
  10. RewriteRule ^jobs/jobtag-search-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)-(.*).htm$ jobs/jobtag-search\.php\?category=$1&subclass=$2&district=$3&sdistrict=$4&jobtag=$5&inforow=$6&page=$7 
  11. RewriteRule ^jobs/street-search-(.*)-(.*)-(.*)-(.*).htm$ jobs/street-search\.php\?streetid=$1&sort=$2&inforow=$3&page=$4 
  12. RewriteRule ^jobs/officebuilding-search-(.*)-(.*)-(.*)-(.*).htm$ jobs/officebuilding-search\.php\?officebuildingid=$1&sort=$2&inforow=$3&page=$4 
  13. RewriteRule ^company/company-list-(.*)-(.*)-([0-9]+)\.htm$ company/index\.php\?trade=$1&inforow=$2&page=$3 
  14. RewriteRule ^company/company-show-([0-9]+)\.htm$ company/company-show\.php\?id=$1 
  15. RewriteRule ^company/company-jobs-([0-9]+)-([0-9]+)\.htm$ company/company-jobs\.php\?id=$1&page=$2 
  16. RewriteRule ^company/company-comment-([0-9]+)-([0-9]+)\.htm$ company/company-comment\.php\?id=$1&page=$2 
  17. RewriteRule ^company/company-comment-show-([0-9]+)\.htm$ company/company-comment-show\.php\?id=$1 
  18. RewriteRule ^company/company-img-([0-9]+)-([0-9]+)\.htm$ company/company-img\.php\?id=$1&page=$2 
  19. RewriteRule ^company/company-news-([0-9]+)-([0-9]+)\.htm$ company/company-news\.php\?id=$1&page=$2 
  20. RewriteRule ^company/company-news-show-([0-9]+)\.htm$ company/company-news-show\.php\?id=$1 
  21. RewriteRule ^resume/resume-show-([0-9]+)\.htm$ resume/resume-show\.php\?id=$1 
  22. RewriteRule ^resume/resume-list-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)\.htm$ resume/resume-list\.php\?category=$1&subclass=$2&district=$3&sdistrict=$4&experience=$5&education=$6&sex=$7&photo=$8&talent=$9&inforow=$10&sort=$11&key=$12&page=$13 
  23. RewriteRule ^resume/resumetag-search-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)-(.*).htm$ resume/resume-search\.php\?category=$1&subclass=$2&district=$3&sdistrict=$4&resumetag=$5&inforow=$6&page=$7 
  24. RewriteRule ^news/news-list-([0-9]+)-([0-9]+)\.htm$ news/news-list\.php\?id=$1&page=$2 
  25. RewriteRule ^news/news-search-(.*)-([0-9]+)\.htm$ news/news-search\.php\?key=$1&page=$2 
  26. RewriteRule ^news/news-show-([0-9]+)\.htm$ news/news-show\.php\?id=$1 
  27. RewriteRule ^explain/explain-show-([0-9]+)\.htm$ explain/explain-show\.php\?id=$1 
  28. RewriteRule ^notice/notice-list-([0-9]+)-([0-9]+)\.htm$ notice/notice-list\.php\?id=$1&page=$2 
  29. RewriteRule ^notice/notice-show-([0-9]+)\.htm$ notice/notice-show\.php\?id=$1 
  30. RewriteRule ^hrtools/hrtools-list-([0-9]+)\.htm$ hrtools/hrtools-list\.php\?id=$1 
  31. RewriteRule ^jobfair/jobfair-list-([0-9]+)\.htm$ jobfair/jobfair-list\.php\?page=$1 
  32. RewriteRule ^jobfair/jobfair-show-([0-9]+)\.htm$ jobfair/jobfair-show\.php\?id=$1 
  33. RewriteRule ^jobfair/jobfair-exhibitors-([0-9]+)-([0-9]+)\.htm$ jobfair/jobfair-exhibitors\.php\?id=$1&page=$2 
  34. RewriteRule ^simple/([0-9]+)\.htm$ simple/simple-list\.php\?key=$1&keytype=$2&page=$3 
  35. RewriteRule ^simple/simple-show-([0-9]+)\.htm$ simple/simple-show\.php\?id=$1 
  36. RewriteRule ^help/help-list-([0-9]+)-([0-9]+)\.htm$ help/help-list\.php\?id=$1&page=$2 
  37. RewriteRule ^help/help-search-(.*)-([0-9]+)\.htm$ help/help-search\.php\?key=$1&page=$2 
  38. RewriteRule ^help/help-show-([0-9]+)\.htm$ help/help-show\.php\?id=$1 

文件上传完毕之后,进入后台在系统-页面管理中,勾选你需要设置伪静态的页面进行确认.

至此伪静态设置就完成了,如果没有生效可以尝试清除一下缓存试试。如果您是使用的是自己的路LUM面板,直接将.htaccess文件放在根目录可能会导致系统配置出错或伪静态无法生效,可以采取下面的解决方案。

直接选择完全使用Apache处理,然后在关闭系统中的伪静态规则,即不做任何选择,然后确认.htaccess已完好的放在网站根目录,后台设置完毕,网站的伪静态即可生效啦。

相关文章

热门资讯

2020微信伤感网名听哭了 让对方看到心疼的伤感网名大全
2020微信伤感网名听哭了 让对方看到心疼的伤感网名大全 2019-12-26
Intellij idea2020永久破解,亲测可用!!!
Intellij idea2020永久破解,亲测可用!!! 2020-07-29
歪歪漫画vip账号共享2020_yy漫画免费账号密码共享
歪歪漫画vip账号共享2020_yy漫画免费账号密码共享 2020-04-07
电视剧《琉璃》全集在线观看 琉璃美人煞1-59集免费观看地址
电视剧《琉璃》全集在线观看 琉璃美人煞1-59集免费观看地址 2020-08-12
最新idea2020注册码永久激活(激活到2100年)
最新idea2020注册码永久激活(激活到2100年) 2020-07-29
返回顶部