<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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                相关文档推荐

                DeepL的翻译效果还是很强大的,如果我们要用php实现DeepL翻译调用,该怎么办呢?以下是代码示例,希望能够帮到需要的朋友。 在这里需要注意,这个DeepL的账户和api申请比较难,不支持中国大陆申请,需要拥有香港或者海外信用卡才行,没账号的话,目前某宝可以
                PHP通过phpspreadsheet导入Excel日期,导入系统后,全部变为了4开头的几位数字,这是为什么呢?原因很简单,将Excel的时间设置问文本,我们就能看到该日期本来的数值,上图对应的数值为: 要怎么解决呢?进行数据转换就行,这里可以封装方法,或者用第三方的
                mediatemple - can#39;t send email using codeigniter(mediatemple - 无法使用 codeigniter 发送电子邮件)
                Laravel Gmail Configuration Error(Laravel Gmail 配置错误)
                Problem with using PHPMailer for SMTP(将 PHPMailer 用于 SMTP 的问题)
                Issue on how to setup SMTP using PHPMailer in GoDaddy server(关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题)

              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>