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

puppy

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]

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

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


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

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伪静态如图所示:

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

 


相关推荐
  • SEO站长优质内容创作与生产的四大绝招
  • SEO是什么?SEO优化到底是做什么的呢?
  • SEO优化之网站(sitemap)地图如何设计
  • 佛山seo-佛山seo网站优化外包公司【top5】
  • ASO与SEO有什么不同?ASO影响因素是什么
  • 系统推荐
  • 为什么关键词排名做不上百度首页
  • 怎样写个好的文章标题
  • 网站SEO外链建设经验总结
  • SEO优化之动态、静态和伪静态页面哪个好
  • 完整的seo优化思路是怎样的
  • 热门关键词
    SEO博客seoseo搜索引擎收录seo链接网站DZ静态


    puppy

    官方运营-Sean丶♥

    5187 SEO文章

    评论