Home  >  Article  >  Backend Development  >  IIS6下WordPress固定连的疑问

IIS6下WordPress固定连的疑问

WBOY
WBOYOriginal
2016-07-06 13:51:31994browse

IIS6下wordpress固定连接让我踩了一天的坑,固定连接后用

/index.php?category_name=php

可以访问分类,但是我写到RewriteRule后就是老报404

RewriteRule ^/program/(.*) /index.php\?category_name=$1 [L]

因为我用的是全局URLRewrite配置,后面搞了一天才发现要这样写RewriteRule

RewriteRule ^/program/(.*) /index.php/program\?category_name=$1 [L]

但是这个404是怎么来真搞不清楚,连WP是在那行代码跳转到404都找不到,WP的执行流程让我有点抓狂。

回复内容:

IIS6下wordpress固定连接让我踩了一天的坑,固定连接后用

/index.php?category_name=php

可以访问分类,但是我写到RewriteRule后就是老报404

RewriteRule ^/program/(.*) /index.php\?category_name=$1 [L]

因为我用的是全局URLRewrite配置,后面搞了一天才发现要这样写RewriteRule

RewriteRule ^/program/(.*) /index.php/program\?category_name=$1 [L]

但是这个404是怎么来真搞不清楚,连WP是在那行代码跳转到404都找不到,WP的执行流程让我有点抓狂。

你还用过时的IIS6,不踩坑才怪。
难道不能用Apache或者Nginx吗?

真搞不明白用win主机到底因为啥

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn