繁体   English   中英

Wordpress Pretty Permalinks重定向到iis7上的主页

[英]Wordpress Pretty Permalinks redirecting to home page on iis7

我在iis7上有我的WP站点[Windows server 2008 R2];已经探索了很多找到正确的解决方案,但没有任何工作:(

http://cricketclips.net/late-overs-batting-flurry-from-luke-wright-pepsi-ipl-2013-kxip-vs-pw-match-29/

将以下代码添加到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重写模块”,两者都已安装。

在这方面的任何帮助将不胜感激。

这个链接帮助我使我的permlink工作!

只是按照步骤

  1. 将固定链接结构更改为

    http://example.com/index.php/%post_id%/%postname%/

  2. 检查结果,瞧! 它正在工作......

  3. 然后将链接更改回

    http://example.com/%post_id%/%postname%/

  4. 并且幸福地过了:)

您可以从此处更改固定链接设置

http:// localhost / {your_projects_name} /wp-admin/options-permalink.php

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM