Tipask IIS下伪静态设置

URL 静态功能受到Tipask所在服务器环境的制约,在开启此功能之前,请根据你的 Web 服务器环境,选择相应的环境配置方法。
错误的设置有可能造成服务器无法启动或者功能无效。
IIS Web Server(独立主机用户

请下载ISAPI rewrite 3.0版本(此处下载 http://www.helicontech.com/download-isapi_rewrite3.htm),安装。之后打开配置文件 httpd.conf,将下列规则加入:

添加如下代码:

RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.*$ index.php?$0

ISAPI rewrite 2.0版本, 打开配置文件 httpd.ini,
添加如下代码:

[ISAPI_Rewrite]
# 3600 = 1 hour
CacheClockRate 3600

RepeatLimit 32


RewriteRule ^(.*)/category/view/([0-9]+)\.html\?*(.*)$ $1/index\.php\?category/view/$2.html
RewriteRule ^(.*)/category/list/([0-9]+)\.html\?*(.*)$ $1/index\.php\?category/list/$2.html
RewriteRule ^(.*)/category/view/([0-9]+)/([0-9]+)\.html\?*(.*)$ $1/index\.php\?category/view/$2/$3/.html
RewriteRule ^(.*)/category/view/([0-9]+)/-1\.html\?*(.*)$ $1/index\.php\?category/view/$2/-1/.html
RewriteRule ^(.*)/user/scorelist/([0-9]+)\.html\?*(.*)$ $1/index\.php\?user/scorelist/$2.html
RewriteRule ^(.*)/user/code\.html\?*(.*)$ $1/index\.php\?user/code.html
RewriteRule ^(.*)/user/getpass\.html\?*(.*)$ $1/index\.php\?user/getpass.html
RewriteRule ^(.*)/user/register\.html\?*(.*)$ $1/index\.php\?user/register.html
RewriteRule ^(.*)/user/login\.html\?*(.*)$ $1/index\.php\?user/login.html
RewriteRule ^(.*)/question/add\.html\?*(.*)$ $1/index\.php\?question/add.html
RewriteRule ^(.*)/user/default\.html\?*(.*)$ $1/index\.php\?user/default.html
RewriteRule ^(.*)/user/profile\.html\?*(.*)$ $1/index\.php\?user/profile.html
RewriteRule ^(.*)/user/ask\.html\?*(.*)$ $1/index\.php\?user/ask.html
RewriteRule ^(.*)/user/uppass\.html\?*(.*)$ $1/index\.php\?user/uppass.html
RewriteRule ^(.*)/note/list\.html\?*(.*)$ $1/index\.php\?note/list.html
RewriteRule ^(.*)/user/score\.html\?*(.*)$ $1/index\.php\?user/score.html
RewriteRule ^(.*)/user/space/([0-9]+)\.html\?*(.*)$ $1/index\.php\?user/space/$2.html
RewriteRule ^(.*)/user/space/3/([0-9]+)\.html\?*(.*)$ $1/index\.php\?user/space/3/$2.html
RewriteRule ^(.*)/rss/list/([0-9]+)\.html\?*(.*)$ $1/index\.php\?rss/list/$2.html
RewriteRule ^(.*)/question/search/2\.html\?*(.*)$ $1/index\.php\?question/search/2.html
RewriteRule ^(.*)/index/help\.html\?*(.*)$ $1/index\.php\?index/help.html
RewriteRule ^(.*)/user/space/([0-9]+)/([0-9]+)\.html\?*(.*)$ $1/index\.php\?user/space/$2/$3.html
RewriteRule ^(.*)/user/answer\.html\?*(.*)$ $1/index\.php\?user/answer.html
RewriteRule ^(.*)/message/send\.html\?*(.*)$ $1/index\.php\?message/send.html
RewriteRule ^(.*)/message/personal\.html\?*(.*)$ $1/index\.php\?message/personal.html
RewriteRule ^(.*)/message/system\.html\?*(.*)$ $1/index\.php\?message/system.html
RewriteRule ^(.*)/message/outbox\.html\?*(.*)$ $1/index\.php\?message/outbox.html
RewriteRule ^(.*)/message/new\.html\?*(.*)$ $1/index\.php\?message/new.html
RewriteRule ^(.*)/question/add/([0-9]+)\.html\?*(.*)$ $1/index\.php\?question/add/$2.html
RewriteRule ^(.*)/question/view/([0-9]+)\.html\?*(.*)$ $1/index\.php\?question/view/$2.html
RewriteRule ^(.*)/question/adopt\.html\?*(.*)$ $1/index\.php\?question/adopt.html
RewriteRule ^(.*)/message/view/([0-9]+)\.html\?*(.*)$ $1/index\.php\?message/view/$2.html
RewriteRule ^(.*)/message/remove/([0-9]+)\.html\?*(.*)$ $1/index\.php\?message/remove/$2.html
RewriteRule ^(.*)/question/supply/([0-9]+)\.html\?*(.*)$ $1/index\.php\?question/supply/$2.html
RewriteRule ^(.*)/question/addscore/([0-9]+)\.html\?*(.*)$ $1/index\.php\?question/addscore/$2.html
RewriteRule ^(.*)/question/close\.html\?*(.*)$ $1/index\.php\?question/close.html
 

你可能感兴趣的:(职场,伪静态,IIS,休闲,tipask)