Questions about WordPress fixed connection under IIS6

WBOY
Release: 2016-07-06 13:51:31
Original
1057 people have browsed it

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

<code>/index.php?category_name=php
</code>
Copy after login
Copy after login

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

<code>RewriteRule ^/program/(.*) /index.php\?category_name=$1 [L]
</code>
Copy after login
Copy after login

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

<code>RewriteRule ^/program/(.*) /index.php/program\?category_name=$1 [L]
</code>
Copy after login
Copy after login

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

回复内容:

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

<code>/index.php?category_name=php
</code>
Copy after login
Copy after login

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

<code>RewriteRule ^/program/(.*) /index.php\?category_name=$1 [L]
</code>
Copy after login
Copy after login

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

<code>RewriteRule ^/program/(.*) /index.php/program\?category_name=$1 [L]
</code>
Copy after login
Copy after login

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

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

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!