去评论
dz插件网

【亮剑】求职招聘商业版伪静态规则

admin
2021/04/10 16:34:17
【亮剑】求职招聘商业版伪静态规则:
Apache Web Server(独立主机用户):

  1. #首页
  2. RewriteCond %{QUERY_STRING} ^(.*)$
  3. RewriteRule ^(.*)/job\.html$  $1/plugin.php?id=aljzp&%1
  4. RewriteCond %{QUERY_STRING} ^(.*)$
  5. RewriteRule ^(.*)/job_([0-9]+)\.html$  $1/plugin.php?id=aljzp&act=view&lid=$2&%1
  6. RewriteCond %{QUERY_STRING} ^(.*)$
  7. RewriteRule ^(.*)/job_resume\.html$  $1/plugin.php?id=aljzp&act=resumes&%1
  8. RewriteCond %{QUERY_STRING} ^(.*)$
  9. RewriteRule ^(.*)/job_resume_([0-9]+)\.html$  $1/plugin.php?id=aljzp&act=resumes&uid=$2&%1



Apache Web Server(虚拟主机用户):

  1. #首页
  2. RewriteCond %{QUERY_STRING} ^(.*)$
  3. RewriteRule ^job\.html$  plugin.php?id=aljzp&%1
  4. RewriteCond %{QUERY_STRING} ^(.*)$
  5. RewriteRule ^job_([0-9]+)\.html$  plugin.php?id=aljzp&act=view&lid=$1&%1
  6. RewriteCond %{QUERY_STRING} ^(.*)$
  7. RewriteRule ^job_resume\.html$  plugin.php?id=aljzp&act=resumes&%1
  8. RewriteCond %{QUERY_STRING} ^(.*)$
  9. RewriteRule ^job_resume_([0-9]+)\.html$  plugin.php?id=aljzp&act=resumes&uid=$1&%1



IIS Web Server(独立主机用户):

  1. RewriteRule ^(.*)/job\.html(\?(.*))*$  $1/plugin\.php\?id=aljzp&$3
  2. RewriteRule ^(.*)/job_([0-9]+)\.html(\?(.*))*$  $1/plugin\.php\?id=aljzp&act=view&lid=$2&$4
  3. RewriteRule ^(.*)/job_resume\.html(\?(.*))*$  $1/plugin\.php\?id=aljzp&act=resumes&$3
  4. RewriteRule ^(.*)/job_resume_([0-9]+)\.html(\?(.*))*$  $1/plugin\.php\?id=aljzp&act=resumes&uid=$2&$4



IIS7 Web Server(独立主机用户):

  1. <rule name="aljzp_index">
  2.         <match url="^(.*/)*job.html\?*(.*)$" />
  3.         <action type="Rewrite" url="{R:1}/plugin.php\?id=aljzp&{R:2}" />
  4. </rule>
  5. <rule name="aljzp_view">
  6.         <match url="^(.*/)*job_([0-9]+).html\?*(.*)$" />
  7.         <action type="Rewrite" url="{R:1}/plugin.php\?id=aljzp&act=view&lid={R:2}" />
  8. </rule>
  9. <rule name="aljzp_resume_index">
  10.         <match url="^(.*/)*job_resume.html\?*(.*)$" />
  11.         <action type="Rewrite" url="{R:1}/plugin.php\?id=aljzp&resumes&{R:2}" />
  12. </rule>
  13. <rule name="aljzp_resume_view">
  14.         <match url="^(.*/)*job_resume_([0-9]+).html\?*(.*)$" />
  15.         <action type="Rewrite" url="{R:1}/plugin.php\?id=aljzp&resumes&uid={R:2}" />
  16. </rule>



Nginx Web Server:

  1. rewrite ^([^\.]*)/job\.html$  $1/plugin.php?id=aljzp last;
  2. rewrite ^([^\.]*)/job_([0-9]+)\.html$  $1/plugin.php?id=aljzp&act=view&lid=$2 last;
  3. rewrite ^([^\.]*)/job_resume\.html$  $1/plugin.php?id=aljzp&act=resumes last;
  4. rewrite ^([^\.]*)/job_resume_([0-9]+)\.html$  $1/plugin.php?id=aljzp&act=resumes&uid=$2 last;