不知道服务器怎么配置开启静态,请自行百度或咨询空间商客服。
添加规则后没生效,请尝试重启服务器,重启服务器,重启服务器。
=====================Apache Web Server规则=====================(分割线不需要复制)
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^video\.html$ plugin.php?id=xlwsq_video
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^video_list_([0-9]+)\.html$ plugin.php?id=xlwsq_video&m=$1
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^video_([0-9]+)\.html$ plugin.php?id=xlwsq_video&mod=view&sid=$1
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^video_user\.html$ plugin.php?id=xlwsq_video:xlwsq_video_user
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^video_user_add\.html$ plugin.php?id=xlwsq_video:xlwsq_video_user&p=add
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^video_user_favorites\.html$ plugin.php?id=xlwsq_video:xlwsq_video_user&p=favorites
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^video_user_dsjl\.html$ plugin.php?id=xlwsq_video:xlwsq_video_user&p=dsjl
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^video_user_hsjl\.html$ plugin.php?id=xlwsq_video:xlwsq_video_user&p=hsjl
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^video_list_([0-9]+)_view\.html$ plugin.php?id=xlwsq_video&m=$1&paixu=view
- RewriteCond %{QUERY_STRING} ^(.*)$
- RewriteRule ^video_list_([0-9]+)_tj\.html$ plugin.php?id=xlwsq_video&m=$1&paixu=tj
复制代码- RewriteRule ^(.*)/video\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_video
- RewriteRule ^(.*)/video_list_([0-9]+)\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_video&m=$2
- RewriteRule ^(.*)/video_([0-9]+)\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_video&mod=view&sid=$2
- RewriteRule ^(.*)/video_user\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_video:xlwsq_video_user
- RewriteRule ^(.*)/video_user_add\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_video:xlwsq_video_user&p=add
- RewriteRule ^(.*)/video_user_favorites\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_video:xlwsq_video_user&p=favorites
- RewriteRule ^(.*)/video_user_dsjl\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_video:xlwsq_video_user&p=dsjl
- RewriteRule ^(.*)/video_user_hsjl\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_video:xlwsq_video_user&p=hsjl
- RewriteRule ^(.*)/video_list_([0-9]+)_view\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_video&m=$2&paixu=view
- RewriteRule ^(.*)/video_list_([0-9]+)_tj\.html\?*(.*)$ $1/plugin\.php\?id=xlwsq_video&m=$2&paixu=tj
复制代码- rewrite ^([^\.]*)/video.html$ $1/plugin.php?id=xlwsq_video last;
- rewrite ^([^\.]*)/video_list_([0-9]+)\.html$ $1/plugin.php?id=xlwsq_video&m=$2 last;
- rewrite ^([^\.]*)/video_([0-9]+)\.html$ $1/plugin.php?id=xlwsq_video&mod=view&sid=$2 last;
- rewrite ^([^\.]*)/video_user\.html$ $1/plugin.php?id=xlwsq_video:xlwsq_video_user last;
- rewrite ^([^\.]*)/video_user_add\.html$ $1/plugin.php?id=xlwsq_video:xlwsq_video_user&p=add last;
- rewrite ^([^\.]*)/video_user_favorites\.html$ $1/plugin.php?id=xlwsq_video:xlwsq_video_user&p=favorites last;
- rewrite ^([^\.]*)/video_user_dsjl\.html$ $1/plugin.php?id=xlwsq_video:xlwsq_video_user&p=dsjl last;
- rewrite ^([^\.]*)/video_user_hsjl\.html$ $1/plugin.php?id=xlwsq_video:xlwsq_video_user&p=hsjl last;
- rewrite ^([^\.]*)/video_list_([0-9]+)_view\.html$ $1/plugin.php?id=xlwsq_video&m=$2&paixu=view last;
- rewrite ^([^\.]*)/video_list_([0-9]+)_tj\.html$ $1/plugin.php?id=xlwsq_video&m=$2&paixu=tj last;
复制代码- <rule name="xlwsqvideo1">
- <match url="^(.*/)*video.html\?*(.*)$" />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_video" />
- </rule>
- <rule name="xlwsqvideo2">
- <match url="^(.*/)*video_list_([0-9]+).html\?*(.*)$" />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_video&m={R:2}" />
- </rule>
- <rule name="xlwsqvideo3">
- <match url="^(.*/)*video_([0-9]+).html\?*(.*)$" />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_video&mod=view&sid={R:2}" />
- </rule>
- <rule name="xlwsqvideo4">
- <match url="^(.*/)*video_user.html\?*(.*)$" />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_video:xlwsq_video_user" />
- </rule>
- <rule name="xlwsqvideo5">
- <match url="^(.*/)*video_user_add.html\?*(.*)$" />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_video:xlwsq_video_user&p=add" />
- </rule>
- <rule name="xlwsqvideo6">
- <match url="^(.*/)*video_user_favorites.html\?*(.*)$" />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_video:xlwsq_video_user&p=favorites" />
- </rule>
- <rule name="xlwsqvideo7">
- <match url="^(.*/)*video_user_dsjl.html\?*(.*)$" />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_video:xlwsq_video_user&p=dsjl" />
- </rule>
- <rule name="xlwsqvideo8">
- <match url="^(.*/)*video_user_hsjl.html\?*(.*)$" />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_video:xlwsq_video_user&p=hsjl" />
- </rule>
- <rule name="xlwsqvideo9">
- <match url="^(.*/)*video_list_([0-9]+)_view.html\?*(.*)$" />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_video&m={R:2}&paixu=view" />
- </rule>
- <rule name="xlwsqvideo10">
- <match url="^(.*/)*video_list_([0-9]+)_tj.html\?*(.*)$" />
- <action type="Rewrite" url="{R:1}/plugin.php\?id=xlwsq_video&m={R:2}&paixu=tj" />
- </rule>
复制代码
|