Top Ad unit 728 × 90

mod_rewrite with web.config for iis

You need to write this for the iis server.
<?xml version="1.0" encoding="UTF-8"?>





        <rule name="wordpress" stopProcessing="true">

          <match url=".*" />

          <conditions logicalGrouping="MatchAll">

            <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />

            <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />


          <action type="Rewrite" url="index.php" />





mod_rewrite with web.config for iis Reviewed by Ashok Sen on 03:28:00 Rating: 5

1 comment:

  1. In Apache you can write the following way

    RewriteEngine On
    RewriteCond %{REQUEST_URI} ^system.*
    RewriteRule ^(.*)$ /index.php/$1 [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php/$1 [L]

    and its working fine.


Thanks for sharing your valuable comments.

All Rights Reserved by ASENwebmedia © 2014 - 2015
Powered By Blogger, Developed by Asenwebmedia

Contact Form


Email *

Message *

Powered by Blogger.