Eliminar index.php de las URL de wordpress en iis7

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

preguntado el 24 de agosto de 12 a las 09:08

Any of this answers solved your problem? -

2 Respuestas

Use this web.config

(web.config is the IIS equivalent to .htaccess file in apache webservers. It can be found in the root folder. If there is none, you need to create one.)

<?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>

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

Tenga en cuenta que URL Rewrite module specific to IIS version needs to be installed for this to function(Thanks to @Spikolynn's comment below)

Respondido el 30 de enero de 19 a las 06:01

where is web.config - Nicolás S.Xu

web.config is the IIS equivalent to .htaccess file in apache webservers. It can be found in the root folder. If there is none, you need to create one. - Binod Kalathil

I am not a wordpress developer, but after many days of research finally I have found the resolution. - Chandresh Khambhayata

You need the URL Rewrite module installed for this to function: iis.net/downloads/microsoft/url-reescribir - Spikolynn

@Spikolynn that is right. I will add it to the answer - Binod Kalathil

Another pretty quick solution, in a situation where you uses Windows Azure websites, is to use Microsoft WebMatrix to login into your website and just create a web.config file as this article pointed out. That solves it. No need to install a URL Rewrite extension or anything like that yourself. MS Webmatrix seem to solve the problem easily.

Respondido 16 Jul 13, 11:07

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.