WordPress程序在IIS环境下伪静态配置文件

Author Avatar
Gcod 2月 12, 2017
  • 在其它设备中阅读本文章


WordPress程序在IIS环境下伪静态配置文件

下载后放入网站根目录,重启IIS即可!


[ISAPI_Rewrite]

Defend your computer from some worm attacks

#RewriteRule .(?:global.asa|default.ida|root.exe|..). . [F,I,O]

3600 = 1 hour

CacheClockRate 3600

RepeatLimit 32

# Protect httpd.ini and httpd.parse.errors files

from accessing through HTTP

Rules to ensure that normal content gets through

RewriteRule /tag/(.*) /index.php?tag=$1

RewriteRule /software-files/(.) /software-files/$1 [L]
RewriteRule /images/(.
) /images/$1 [L]
RewriteRule /sitemap.xml /sitemap.xml [L]
RewriteRule /favicon.ico /favicon.ico [L]

For file-based wordpress content (i.e. theme), admin, etc.

RewriteRule /wp-(.*) /wp-$1 [L]

For normal wordpress content, via index.php

RewriteRule ^/$ /index.php [L]
RewriteRule /(.*) /index.php/$1 [L]

本站启用的固定架构为: /archives/%post_id%.html
提取密码:vv234
https://eyun.baidu.com/s/3bpmXr8j


文章仅供参考,
部分内容转换后可能无法正常显示,推荐从网盘下载源文件查看。

版权声明:若无特殊说明,本站默认遵循 署名-非商业性使用-相同方式共享(CC BY-NC-SA)4.0 国际许可协议
本文链接:https://vv1234.cn/archives/110.html