因为专注
所以专业

win主机vps伪静态以及wordpress伪静态设置教程

针对很多VPS主机安装wordpress的朋友来说怎么设置伪静态呢,下面SEO博客给大家演示一下。

1.将下载的 IIS Rewrite 组件解压,放到适当的目录。
2.解压完毕后,您需要给e:\xxlseo.com目录加上
adms,system全部的权限、Users读与运行的权限,如果您不加
上Users的权限,就会造成IIS无法启动。

VPS伪静态设置1
3.设置好权限后,在 IIS 管理器里选择网站,右键选择“属性
4.然后选择ISAPI筛选器,然后点击“添加” 选型卡 如下图:
5.点击添加选项卡之后,在筛选器名称填写iiswrite,可执行
文件选取:E:\xxlseo.com\www\rewrite\ISAPI_Rewrite.dll ,也就是
解压rewrite的文件夹路径。如下图:VPS伪静态设置2

6.新建一个 txt 文件,将下面的代码添加到文件中:然后另存为 httpd.ini 文件,上传到WordPress站点的根目录即可。

[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]

 

7.设置好了VPS伪静态之后我们再来设置一下wordpress伪静态如图所示:wordpress伪静态设置1

8.设置好了之后重启IIS,点击确定即可。

 

未经允许不得转载:肖兴来SEO博客 » win主机vps伪静态以及wordpress伪静态设置教程
分享到: 更多 (0)

评论 1

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
  1. #1

    早安~不要站在现在的高度,去判定未来的事情,因为未来的你是会成长的,会有新的选择和判断。

    卢松松商城8年前 (2016-09-05)回复