admin 发表于 2021-4-10 16:34:17

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

【亮剑】求职招聘商业版伪静态规则:
Apache Web Server(独立主机用户):

#首页
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)/job\.html$$1/plugin.php?id=aljzp&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)/job_(+)\.html$$1/plugin.php?id=aljzp&act=view&lid=$2&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)/job_resume\.html$$1/plugin.php?id=aljzp&act=resumes&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)/job_resume_(+)\.html$$1/plugin.php?id=aljzp&act=resumes&uid=$2&%1


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

#首页
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^job\.html$plugin.php?id=aljzp&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^job_(+)\.html$plugin.php?id=aljzp&act=view&lid=$1&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^job_resume\.html$plugin.php?id=aljzp&act=resumes&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^job_resume_(+)\.html$plugin.php?id=aljzp&act=resumes&uid=$1&%1


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

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


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

<rule name="aljzp_index">
        <match url="^(.*/)*job.html\?*(.*)$" />
        <action type="Rewrite" url="{R:1}/plugin.php\?id=aljzp&{R:2}" />
</rule>
<rule name="aljzp_view">
        <match url="^(.*/)*job_(+).html\?*(.*)$" />
        <action type="Rewrite" url="{R:1}/plugin.php\?id=aljzp&act=view&lid={R:2}" />
</rule>
<rule name="aljzp_resume_index">
        <match url="^(.*/)*job_resume.html\?*(.*)$" />
        <action type="Rewrite" url="{R:1}/plugin.php\?id=aljzp&resumes&{R:2}" />
</rule>
<rule name="aljzp_resume_view">
        <match url="^(.*/)*job_resume_(+).html\?*(.*)$" />
        <action type="Rewrite" url="{R:1}/plugin.php\?id=aljzp&resumes&uid={R:2}" />
</rule>


Nginx Web Server:

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

页: [1]
查看完整版本: 【亮剑】求职招聘商业版伪静态规则

创宇盾启航版免费网站防御网站加速服务