Win主机设置站内站WordPress伪静态的方法
  发表时间:2017-03-28 07:39:31

Win主机设置站内站WordPress伪静态的方法
今天天骄科技胶南做公司公司小编,安装了站内战blog,在为blog修改为了固定链接以后,

出现了打开文章以后跳转到404页面的问题,那么关于造成这个问题的原因,我百度了一下,
是因为没有为blog设置伪静态,那么关于伪静态如何设置,就不详述,下面直接贴出代码,
上面这一组是301设置,下面那组就是实现一级目录博客的伪静态设置,
这样设置好以后把httpd.ini文件上传至空间根目录即可

[ISAPI_Rewrite]
#3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
RewriteCond Host: ^puatime\.com$
RewriteRule (.*) http\://www\.puatime\.com$1 [I,R]


[ISAPI_Rewrite]
# 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 /blog/sitemap.xml /blog/sitemap.xml [L]
RewriteRule /blog/favicon.ico /blog/favicon.ico [L]
# For tag
RewriteRule /blog/tag/(.*)/page/(\d+)$ /blog/index\.php\?tag=$1&paged=$2
RewriteRule /blog/tag/(.+)$ /blog/index\.php\?tag=$1
# For category
RewriteRule /blog/category/(.*)/page/(\d+)$ /blog/index\.php\?category_name=$1&paged=$2
RewriteRule /blog/category/(.*) /blog/index\.php\?category_name=$1
# For file-based wordpress content (i.e. theme), admin, etc.
RewriteRule /blog/wp-(.*) /blog/wp-$1 [L]
# For normal wordpress content, via index.php
RewriteRule ^/blog/$ /blog/index.php [L]
RewriteRule /blog/(.*) /blog/index.php/$1 [L]
#For page
RewriteRule /blog/page/(.*)/?s=(.*) /blog/index\.php\?s=$2&paged=$1
RewriteRule /blog/page/(.*) /blog/index\.php\?paged=$1

青岛网站建设
天骄科技-双子 天骄科技-摩羯 天骄科技-水瓶 天骄科技-狮子
青岛网站建设