不知道服务器怎么配置开启静态,请自行百度或咨询空间商客服。
添加规则后没生效,请尝试重启服务器,重启服务器,重启服务器。
=====================Apache Web Server规则=====================(分割线不需要复制)
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^job\.html$ plugin.php?id=xlwsq_job&%1
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^job_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([a-z0-9~]+)_([0-9]+)\.html$ plugin.php?id=xlwsq_job&a=$1&b=$2&bc=$3&sc=$4&money=$5&type=$6&%1
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^job_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([a-z0-9~]+)_([0-9]+)_([0-9]+)\.html$ plugin.php?id=xlwsq_job&a=$1&b=$2&bc=$3&sc=$4&money=$5&type=$6&page=$7&%1
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^job_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([a-z0-9~]+)_([0-9]+)_tj\.html$ plugin.php?id=xlwsq_job&a=$1&b=$2&bc=$3&sc=$4&money=$5&type=$6&tj=tj&%1
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^job_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([a-z0-9~]+)_([0-9]+)_rq\.html$ plugin.php?id=xlwsq_job&a=$1&b=$2&bc=$3&sc=$4&money=$5&type=$6&rq=rq&%1
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^job_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([a-z0-9~]+)_([0-9]+)_jg\.html$ plugin.php?id=xlwsq_job&a=$1&b=$2&bc=$3&sc=$4&money=$5&type=$6&jg=jg&%1
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^job_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([a-z0-9~]+)_([0-9]+)_hjg\.html$ plugin.php?id=xlwsq_job&a=$1&b=$2&bc=$3&sc=$4&money=$5&type=$6&hjg=hjg&%1
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^job_([0-9]+)\.html$ plugin.php?id=xlwsq_job&mod=view&sid=$1&%1
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^job_yingpinlist_([0-9]+)\.html$ plugin.php?id=xlwsq_job&mod=yingpinlist&sid=$1&%1
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^job_user\.html$ plugin.php?id=xlwsq_job:xlwsq_job_user&%1
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^job_user_mylist\.html$ plugin.php?id=xlwsq_job:xlwsq_job_user&p=mylist&%1
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^job_user_add\.html$ plugin.php?id=xlwsq_job:xlwsq_job_user&p=add&%1
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^job_user_add2\.html$ plugin.php?id=xlwsq_job:xlwsq_job_user&p=add2&%1
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^job_user_favorites\.html$ plugin.php?id=xlwsq_job:xlwsq_job_user&p=favorites&%1
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^job_user_xfjl\.html$ plugin.php?id=xlwsq_job:xlwsq_job_user&p=xfjl&%1
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^job_user_myyingpin\.html$ plugin.php?id=xlwsq_job:xlwsq_job_user&p=myyingpin&%1
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^job_user_myinfo\.html$ plugin.php?id=xlwsq_job:xlwsq_job_user&p=myinfo&%1
复制代码 =====================Nginx Web Server规则===================== - rewrite ^([^\.]*)/job\.html$ $1/plugin.php?id=xlwsq_job last;
- rewrite ^([^\.]*)/job_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([a-z0-9~]+)_([0-9]+)\.html$ $1/plugin.php?id=xlwsq_job&a=$2&b=$3&bc=$4&sc=$5&money=$6&type=$7 last;
- rewrite ^([^\.]*)/job_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([a-z0-9~]+)_([0-9]+)_([0-9]+)\.html$ $1/plugin.php?id=xlwsq_job&a=$2&b=$3&bc=$4&sc=$5&money=$6&type=$7&page=$8 last;
- rewrite ^([^\.]*)/job_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([a-z0-9~]+)_([0-9]+)_tj\.html$ $1/plugin.php?id=xlwsq_job&a=$2&b=$3&bc=$4&sc=$5&money=$6&type=$7&tj=tj last;
- rewrite ^([^\.]*)/job_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([a-z0-9~]+)_([0-9]+)_rq\.html$ $1/plugin.php?id=xlwsq_job&a=$2&b=$3&bc=$4&sc=$5&money=$6&type=$7&rq=rq last;
- rewrite ^([^\.]*)/job_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([a-z0-9~]+)_([0-9]+)_jg\.html$ $1/plugin.php?id=xlwsq_job&a=$2&b=$3&bc=$4&sc=$5&money=$6&type=$7&jg=jg last;
- rewrite ^([^\.]*)/job_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([a-z0-9~]+)_([0-9]+)_hjg\.html$ $1/plugin.php?id=xlwsq_job&a=$2&b=$3&bc=$4&sc=$5&money=$6&type=$7&hjg=hjg last;
- rewrite ^([^\.]*)/job_([0-9]+)\.html$ $1/plugin.php?id=xlwsq_job&mod=view&sid=$2 last;
- rewrite ^([^\.]*)/job_yingpinlist_([0-9]+)\.html$ $1/plugin.php?id=xlwsq_job&mod=yingpinlist&sid&sid=$2 last;
- rewrite ^([^\.]*)/job_user\.html$ $1/plugin.php?id=xlwsq_job:xlwsq_job_user last;
- rewrite ^([^\.]*)/job_user_mylist\.html$ $1/plugin.php?id=xlwsq_job:xlwsq_job_user&p=mylist last;
- rewrite ^([^\.]*)/job_user_add\.html$ $1/plugin.php?id=xlwsq_job:xlwsq_job_user&p=add last;
- rewrite ^([^\.]*)/job_user_add2\.html$ $1/plugin.php?id=xlwsq_job:xlwsq_job_user&p=add2 last;
- rewrite ^([^\.]*)/job_user_favorites\.html$ $1/plugin.php?id=xlwsq_job:xlwsq_job_user&p=favorites last;
- rewrite ^([^\.]*)/job_user_xfjl\.html$ $1/plugin.php?id=xlwsq_job:xlwsq_job_user&p=xfjl last;
- rewrite ^([^\.]*)/job_user_myyingpin\.html$ $1/plugin.php?id=xlwsq_job:xlwsq_job_user&p=myyingpin last;
- rewrite ^([^\.]*)/job_user_myinfo\.html$ $1/plugin.php?id=xlwsq_job:xlwsq_job_user&p=myinfo last;
复制代码 =====================IIS6规则===================== - RewriteRule ^(.*)/job\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_job
- RewriteRule ^(.*)/job_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([a-z0-9~]+)_([0-9]+)\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_job&a=$2&b=$3&bc=$4&sc=$5&money=$6&type=$7
- RewriteRule ^(.*)/job_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([a-z0-9~]+)_([0-9]+)_([0-9]+)\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_job&a=$2&b=$3&bc=$4&sc=$5&money=$6&type=$7&page=$8
- RewriteRule ^(.*)/job_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([a-z0-9~]+)_([0-9]+)_tj\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_job&a=$2&b=$3&bc=$4&sc=$5&money=$6&type=$7&tj=tj
- RewriteRule ^(.*)/job_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([a-z0-9~]+)_([0-9]+)_rq\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_job&a=$2&b=$3&bc=$4&sc=$5&money=$6&type=$7&rq=rq
- RewriteRule ^(.*)/job_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([a-z0-9~]+)_([0-9]+)_jg\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_job&a=$2&b=$3&bc=$4&sc=$5&money=$6&type=$7&jg=jg
- RewriteRule ^(.*)/job_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([a-z0-9~]+)_([0-9]+)_hjg\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_job&a=$2&b=$3&bc=$4&sc=$5&money=$6&type=$7&hjg=hjg
- RewriteRule ^(.*)/job_([0-9]+)\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_job&mod=view&sid=$2
- RewriteRule ^(.*)/job_yingpinlist_([0-9]+)\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_job&mod=yingpinlist&sid=$2
- RewriteRule ^(.*)/job_user\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_job:xlwsq_job_user
- RewriteRule ^(.*)/job_user_mylist\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_job:xlwsq_job_user&p=mylist
- RewriteRule ^(.*)/job_user_add\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_job:xlwsq_job_user&p=add
- RewriteRule ^(.*)/job_user_add2\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_job:xlwsq_job_user&p=add2
- RewriteRule ^(.*)/job_user_favorites\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_job:xlwsq_job_user&p=favorites
- RewriteRule ^(.*)/job_user_xfjl\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_job:xlwsq_job_user&p=xfjl
- RewriteRule ^(.*)/job_user_myyingpin\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_job:xlwsq_job_user&p=myyingpin
- RewriteRule ^(.*)/job_user_myinfo\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_job:xlwsq_job_user&p=myinfo
复制代码 =====================IIS7(或7以上)规则===================== - <rule name="xlwsqjob1">
- <match url="^(.*/)*job.html\?*(.*)$" />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_job" />
- </rule>
- <rule name="xlwsqjob2">
- <match url="^(.*/)*job_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([a-z0-9~]+)_([0-9]+).html\?*(.*)$" />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_job&a={R:2}&b={R:3}&bc={R:4}&sc={R:5}&money={R:6}&type={R:7}" />
- </rule>
- <rule name="xlwsqjob3">
- <match url="^(.*/)*job_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([a-z0-9~]+)_([0-9]+)_([0-9]+).html\?*(.*)$" />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_job&a={R:2}&b={R:3}&bc={R:4}&sc={R:5}&money={R:6}&type={R:7}&page={R:8}" />
- </rule>
- <rule name="xlwsqjob4">
- <match url="^(.*/)*job_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([a-z0-9~]+)_([0-9]+)_tj.html\?*(.*)$" />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_job&a={R:2}&b={R:3}&bc={R:4}&sc={R:5}&money={R:6}&type={R:7}&tj=tj" />
- </rule>
- <rule name="xlwsqjob5">
- <match url="^(.*/)*job_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([a-z0-9~]+)_([0-9]+)_jg.html\?*(.*)$" />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_job&a={R:2}&b={R:3}&bc={R:4}&sc={R:5}&money={R:6}&type={R:7}&jg=jg" />
- </rule>
- <rule name="xlwsqjob6">
- <match url="^(.*/)*job_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([a-z0-9~]+)_([0-9]+)_hjg.html\?*(.*)$" />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_job&a={R:2}&b={R:3}&bc={R:4}&sc={R:5}&money={R:6}&type={R:7}&hjg=hjg" />
- </rule>
- <rule name="xlwsqjob7">
- <match url="^(.*/)*job_list_([0-9]+)_([0-9]+)_([0-9]+)_([0-9]+)_([a-z0-9~]+)_([0-9]+)_rq.html\?*(.*)$" />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_job&a={R:2}&b={R:3}&bc={R:4}&sc={R:5}&money={R:6}&type={R:7}&rq=rq" />
- </rule>
- <rule name="xlwsqjob8">
- <match url="^(.*/)*job_([0-9]+).html\?*(.*)$" />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_job&mod=view&sid={R:2}" />
- </rule>
- <rule name="xlwsqjob9">
- <match url="^(.*/)*job_yingpinlist_([0-9]+).html\?*(.*)$" />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_job&mod=yingpinlist&sid={R:2}" />
- </rule>
- <rule name="xlwsqjob10">
- <match url="^(.*/)*job_user.html\?*(.*)$" />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_job:xlwsq_job_user" />
- </rule>
- <rule name="xlwsqjob11">
- <match url="^(.*/)*job_user_mylist.html\?*(.*)$" />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_job:xlwsq_job_user&p=mylist" />
- </rule>
- <rule name="xlwsqjob12">
- <match url="^(.*/)*job_user_add.html\?*(.*)$" />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_job:xlwsq_job_user&p=add" />
- </rule>
- <rule name="xlwsqjob13">
- <match url="^(.*/)*job_user_add2.html\?*(.*)$" />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_job:xlwsq_job_user&p=add2" />
- </rule>
- <rule name="xlwsqjob14">
- <match url="^(.*/)*job_user_favorites.html\?*(.*)$" />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_job:xlwsq_job_user&p=favorites" />
- </rule>
- <rule name="xlwsqjob15">
- <match url="^(.*/)*job_user_xfjl.html\?*(.*)$" />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_job:xlwsq_job_user&p=xfjl" />
- </rule>
- <rule name="xlwsqjob16">
- <match url="^(.*/)*job_user_myyingpin.html\?*(.*)$" />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_job:xlwsq_job_user&p=myyingpin" />
- </rule>
- <rule name="xlwsqjob17">
- <match url="^(.*/)*job_user_myinfo.html\?*(.*)$" />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_job:xlwsq_job_user&p=myinfo" />
- </rule>
复制代码
|