Emlog伪静态规则 iis / nginx 【个人收藏】

发布日期:2018-11-14 21:14:44

  • 正文内容
  • 相关推荐

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

emlog

[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" />
                    </conditions>
                    <action type="Rewrite" url="/index.php" />
                </rule>
            </rules>
        </rewrite>
    </system.webServer>
</configuration>


作者信息
头像
描述: ღ 我愿用一世阳光换你的微笑 ღ

本文标签:

文章标题:Emlog伪静态规则 iis / nginx 【个人收藏】

文章链接:https://www.dcqzz.cn/post/292

版权声明:若无特殊注明,本文皆为 ღ哪吒ღ 原创,转载请保留文章出处。

发表评论

电子邮件地址不会被公开。 必填项已用*标注


Fatal error: Cannot redeclare index_authorimg() (previously declared in /www/wwwroot/dcqzz.cn/content/templates/FLY/echo_log.php:135) in /www/wwwroot/dcqzz.cn/content/templates/FLY/echo_log.php on line 135