CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   Apache configuration (http://www.codingforums.com/forumdisplay.php?f=69)
-   -   How to use redirectory code in Windows based hosting? (http://www.codingforums.com/showthread.php?t=286589)

sunilmkt 01-28-2013 05:47 PM

How to use redirectory code in Windows based hosting?
 
As we know .htaccess file does not support windows based hosting. So want to ask,How we can use 301 redirection code in IIS based hosting site?

Fou-Lu 01-28-2013 08:30 PM

You configure the action type in the web config.xml.
Code:

<rule name="Imported Rule 1" stopProcessing="true">
<match url="^(.*)$" ignoreCase="false" />
<conditions>
<add input="{HTTP_HOST}" pattern="^example\.com$" />
</conditions>
<action type="Redirect" redirectType="Permanent" url="http://www.example.com/{R:1}" />
</rule>

Is what I am told on this page: http://www.iis.net/learn/application...-iis-webconfig


All times are GMT +1. The time now is 11:45 PM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.