[英]Wordpress Pretty Permalinks redirecting to home page on iis7
我在iis7上有我的WP站点[Windows server 2008 R2];已经探索了很多找到正确的解决方案,但没有任何工作:(
将以下代码添加到root中的web.config
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="WordPress Rule" stopProcessing="true">
<match url=".*" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="index.php?page_id={R:0}" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
但它仍然没有用
我的Url正在重写但被重定向到主页而不是single.php和其他页面(即index.php而不是single.php)
已检查服务器“FCGI”和“URL重写模块”,两者都已安装。
在这方面的任何帮助将不胜感激。
您可以从此处更改固定链接设置
http:// localhost / {your_projects_name} /wp-admin/options-permalink.php
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.