• Resolved kalcantar

    (@kalcantar)


    Hi, I installed my WordPress site on a subfolder in IIS hosting. Now I am working with the web.config file to make the URL redirection to my root, but it is not working. This is what I have right now…

    `<?xml version=”1.0″ encoding=”UTF-8″?>
    <configuration>
    <system.webServer>
    <rewrite>
    <rules>
    <clear />
    <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>
    <rule name=”rule 1g” stopProcessing=”true”>
    <match url=”^(/)?$” />
    <action type=”Rewrite” url=”/Tigerflow” />
    </rule>
    </rules>
    </rewrite>
    </system.webServer>
    </configuration>

Viewing 1 replies (of 1 total)
  • Thread Starter kalcantar

    (@kalcantar)

    What did I ended up doing?

    Left my WordPress install in the subfolder. Moved to root the web.config file and the index.php file where I modified the path for the dirname

    require( dirname( __FILE__ ) . ‘/subfolder/wp-blog-header.php’ ); (change subfolder for your folder name).

Viewing 1 replies (of 1 total)
  • The topic ‘Redirect from subfolder to root on IIS’ is closed to new replies.