IndianWebPortal.com

Something Different In Linux

Home » CMS » Wordpress » wordpress permalink problem in windows server

wordpress permalink problem in windows server

Posted by Rishikesh Vispute Categories: Wordpress

Question : wordpress permalink problem in windows server

Ans:

If you are using IIS 7 and have admin rights on your server, you can use Microsoft’s URL Rewrite Module instead. Though not completely compatible with mod_rewrite, it does support WordPress’s pretty permalinks. Once installed, open the web.config file in the WordPress folder and add the following rule to the system.webServer element

 

<rewrite>
    <rules>
        <rule name="Main Rule" stopProcessing="true">
 <match url=".*" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="index.php/{R:0}" />
        </rule>
    </rules>
</rewrite>

 

One Response so far.

  1. vialvamsGic says:

    Obedient bye, genial soul mate 🙂


Popular Posts

remove index.php fro

How to remove index.php from url in magento Ans : If you ...

PHP-Java bridge on p

  What is php-java bridge? The php-java bridge is the php ...

Set expiration for y

If you want to set the expiration to your site ...

Warning: Parameter 1

Error: Warning: Parameter 1 to modMainMenuHelper::buildXML() expected to be a ...

domain pointing to e

If you domain uses external MX record and it is ...