如何设置Emlog博客的伪静态规则 - 技术分享 - 五行资源分享网

如何设置Emlog博客的伪静态规则

作者头像图片

作者: 五行

网络资源搬砖的爱好者

文章二维码手机扫码查看

特别声明:文章多为网络转载,资源使用一般不提供任何帮助,如有侵权请联系!

如何设置Emlog博客的伪静态规则-五行资源分享网-第1张图片

 

关于怎样开启emlog伪静态规则的文章,今天看到有人问这个emlog系统怎么设置伪静态规则,所以就上网查了一下教程,整理一下,教程放在下面了

 

以下EMLOG博客系统伪静态规则

一、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>

 

 

 

以上教程来自:路羽博客

 

本文最后更新于2022-4-26,已超过 1 年没有更新,如果文章内容或图片资源失效,请留言反馈,我们会及时处理,谢谢!
分享到:
打赏
未经允许不得转载:

作者: 五行, 转载或复制请以 超链接形式 并注明出处 五行资源分享网
原文地址: 《如何设置Emlog博客的伪静态规则》 发布于2022-4-27 00:02
帖子声明: 本站对文章进行整理、排版、编辑,是出于传递信息之目的, 并不意味着赞同其观点或证实其内容的真实性,不拥有所有权,不承担相关法律责任。

评论

在线链接输入图片 打卡按钮图片 私密评论按钮图片 76 + 34 =
乱评论、多次评论者一律禁言帐号或封禁IP
本站已经全面开启缓存,评论查看隐藏内容需等待1分钟后再刷新本页!

 

觉得文章有用就打赏一下文章作者

微信扫一扫打赏

打赏图片