EMLOG主题博客系统伪静态规则

Jaysun

温馨提示:这篇文章已超过394天没有更新,请注意相关的内容是否还可用!

1.png

一、iis6主机请联系主机商修改规则,部分主机支持httpd.ini,请将下列代码保存为httpd.ini上传到博客根目录

[ISAPI_Rewrite] # 3600 = 1 hour CacheClockRate 3600 RepeatLimit 32 RewriteRule /robots.txt(.*) /robots.txt$1 [L] RewriteRule /rss.php(.*) /rss.php$1 [L] RewriteRule /tb.php(.*) /tb.php$1 [L] RewriteRule /favicon.ico /favicon.ico [L] RewriteRule /xmlrpc.php(.*) /xmlrpc.php$1 [L] RewriteRule /wlwmanifest.xml /wlwmanifest.xml [L] RewriteRule /(t|m)$ /$1/ [R] RewriteRule /(admin|content|include|t|m)/(.*) /$1/$2 [L] RewriteRule /install.php(.*) /install.php$1 [L] RewriteRule /emlog_toolkit.php(.*) /emlog_toolkit.php$1 [L] RewriteRule /up(\d.\d.\d)to(\d.\d.\d).php(.*) /up$1to$2.php$3 [L] RewriteRule ^/$ /index.php [L] RewriteRule /(.*) /index.php/$1 [L]

二、支持的.htaccess的IIS6服务器规则:

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

三:nginx:(nginx主机请联系主机商更改规则,部分主机可能支持自定义规则)

location / { index index.php index.html; if (!-e $request_filename) { rewrite ^/(.+)$ /index.php last; } }

四、IIS7/7.5 规则:

 <!--?xml version="1.0" encoding="UTF-8" ?--> <configuration> <system.webserver> <rewrite> <rules> <rule name="emlog 4.0.1 for IIS7.5" stopprocessing="true"> <match url="." ignorecase="false"> <conditions logicalgrouping="MatchAll"> <add input="{REQUEST_FILENAME}" matchtype="IsFile" ignorecase="false" negate="true"> <add input="{REQUEST_FILENAME}" matchtype="IsDirectory" ignorecase="false" negate="true"> </add></add></conditions> <action type="Rewrite" url="/index.php"> </action></match></rule> </rules> </rewrite> </system.webserver> </configuration>


您需要 登录账户 后才能发表评论

发表评论

快捷回复: 表情:
AddoilApplauseBadlaughBombCoffeeFabulousFacepalmFecesFrownHeyhaInsidiousKeepFightingNoProbPigHeadShockedSinistersmileSlapSocialSweatTolaughWatermelonWittyWowYeahYellowdog
评论列表 (暂无评论,565人围观)

还没有评论,来说两句吧...

目录[+]

取消
微信二维码
微信二维码
支付宝二维码