<legend id='9foMk'><style id='9foMk'><dir id='9foMk'><q id='9foMk'></q></dir></style></legend>

<small id='9foMk'></small><noframes id='9foMk'>

<tfoot id='9foMk'></tfoot>

    • <bdo id='9foMk'></bdo><ul id='9foMk'></ul>
    1. <i id='9foMk'><tr id='9foMk'><dt id='9foMk'><q id='9foMk'><span id='9foMk'><b id='9foMk'><form id='9foMk'><ins id='9foMk'></ins><ul id='9foMk'></ul><sub id='9foMk'></sub></form><legend id='9foMk'></legend><bdo id='9foMk'><pre id='9foMk'><center id='9foMk'></center></pre></bdo></b><th id='9foMk'></th></span></q></dt></tr></i><div id='9foMk'><tfoot id='9foMk'></tfoot><dl id='9foMk'><fieldset id='9foMk'></fieldset></dl></div>

      从 iis7 中的 wordpress URL 中删除 index.php

      Remove index.php from wordpress URLs in iis7(从 iis7 中的 wordpress URL 中删除 index.php)
      1. <legend id='RigDJ'><style id='RigDJ'><dir id='RigDJ'><q id='RigDJ'></q></dir></style></legend>

          <tbody id='RigDJ'></tbody>
          <bdo id='RigDJ'></bdo><ul id='RigDJ'></ul>

            <small id='RigDJ'></small><noframes id='RigDJ'>

          • <i id='RigDJ'><tr id='RigDJ'><dt id='RigDJ'><q id='RigDJ'><span id='RigDJ'><b id='RigDJ'><form id='RigDJ'><ins id='RigDJ'></ins><ul id='RigDJ'></ul><sub id='RigDJ'></sub></form><legend id='RigDJ'></legend><bdo id='RigDJ'><pre id='RigDJ'><center id='RigDJ'></center></pre></bdo></b><th id='RigDJ'></th></span></q></dt></tr></i><div id='RigDJ'><tfoot id='RigDJ'></tfoot><dl id='RigDJ'><fieldset id='RigDJ'></fieldset></dl></div>

            <tfoot id='RigDJ'></tfoot>

                本文介绍了从 iis7 中的 wordpress URL 中删除 index.php的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我想从 url 中删除 index.php ,我正在使用 wordpress 和 iis7 .我该怎么做

                I want to remove index.php from url , i am using wordpress and iis7 . how can i do this

                推荐答案

                使用这个 web.config

                Use this web.config

                (web.config是相当于apache webservers中的.htaccess文件的IIS,根目录下可以找到,没有的话需要自己创建一个.)

                <?xml version="1.0" encoding="UTF-8"?>
                <configuration>
                <system.webServer>
                 <defaultDocument>
                     <!-- Set the default document -->
                      <files>
                        <remove value="index.php" />
                        <add value="index.php" />
                      </files>
                    </defaultDocument>
                        <httpErrors errorMode="Detailed"/>
                    <rewrite>
                        <rules>
                            <rule name="wordpress" patternSyntax="Wildcard">
                                <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" />
                            </rule>
                        </rules>
                    </rewrite>
                </system.webServer>
                </configuration>
                

                然后在永久链接页面中,设置自定义结构"并赋予值 /%postname%/

                Then in permalinks page, set "Custom Structure" and give the value /%postname%/

                请注意,需要安装特定于 IIS 版本的 URL 重写模块才能使其正常工作(感谢@Spikolynn 在下面的评论)

                Note that URL Rewrite module specific to IIS version needs to be installed for this to function(Thanks to @Spikolynn's comment below)

                这篇关于从 iis7 中的 wordpress URL 中删除 index.php的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                Appending GET parameters to URL from lt;formgt; action(将 GET 参数附加到来自 lt;formgt; 的 URL行动)
                Forcing quot;Save Asquot; dialog via jQuery GET(强制“另存为通过 jQuery GET 对话框)
                PHP - get certain word from string(PHP - 从字符串中获取某个单词)
                How to debug a get request in php using curl(如何使用 curl 在 php 中调试 get 请求)
                get a # from a url in php(从 php 中的 url 获取 #)
                PHP - include() file not working when variables are put in url?(PHP - 将变量放入 url 时,include() 文件不起作用?)

              1. <i id='lAuPh'><tr id='lAuPh'><dt id='lAuPh'><q id='lAuPh'><span id='lAuPh'><b id='lAuPh'><form id='lAuPh'><ins id='lAuPh'></ins><ul id='lAuPh'></ul><sub id='lAuPh'></sub></form><legend id='lAuPh'></legend><bdo id='lAuPh'><pre id='lAuPh'><center id='lAuPh'></center></pre></bdo></b><th id='lAuPh'></th></span></q></dt></tr></i><div id='lAuPh'><tfoot id='lAuPh'></tfoot><dl id='lAuPh'><fieldset id='lAuPh'></fieldset></dl></div>

                <tfoot id='lAuPh'></tfoot>
                  <tbody id='lAuPh'></tbody>
                • <small id='lAuPh'></small><noframes id='lAuPh'>

                  <legend id='lAuPh'><style id='lAuPh'><dir id='lAuPh'><q id='lAuPh'></q></dir></style></legend>
                      • <bdo id='lAuPh'></bdo><ul id='lAuPh'></ul>