首页 > SEO优化 > Emlog伪静态规则[iis / nginx],Emlog怎么设置伪静态?

Emlog伪静态规则[iis / nginx],Emlog怎么设置伪静态?

时间:2023年10月20日 分类:SEO优化 浏览量:74

Emlog默认不能生成静态文件,不过好像有生成静态页面的相关插件,该插件舍力就先不研究,今天给大家分享一下Emlog在各种环境下的伪静态规则,大家都知道,通过伪静态可以让 博客文章网址变得对搜索引擎更加友好,据网上的seoer们说,好的伪静态有利于 搜索引擎优化,具体有没有博主可自己去探讨。 注:伪静态必须空间支持且在后台-设置中开启伪静态。

IIS6:(iis6主机请联系主机商修改规则,部分主机支持httpd.ini,请将下列代码保存为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]

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

微信扫一扫打赏

标签: