• hi,

    my hosting on windows and my website is on wordpress, so when i try to visit my website with ‘www.icap.org.pk’ so its redirect on ‘icap.org.pk’, but i want to keep my website with ‘www.icap.org.pk’, when i edit my Web.config file woth rediection code so its show error”The page isn’t redirecting properly”
    here is my code of web config file:

    <?xml version="1.0" encoding="UTF-8"?>
    <configuration>
      <system.webServer>
        <rewrite>
          <rules>
    
    	   <rule name="Redirect to WWW" stopProcessing="true">
              <match url=".*" />
              <conditions>
                <add input="{HTTP_HOST}" pattern="^icap.org.pk$" />
              </conditions>
              <action type="Redirect" url="http://www.icap.org.pk/{R:0}" redirectType="Permanent" />
            </rule>
    			<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>

  • The topic ‘Reriection URL error when i edit web config file’ is closed to new replies.