PeopleStar
New Member
i have tow websites e.g "testsite.ir" and "testsite.com". as i know my web site is on Windows Server 2008, Microsoft-IIS/7.5 . how can i use 301 redirect to redirect users from .ir to .com?can i use .htaccess file or i should use webconfig?i use the code bellow in my webconfig, but nothing happen:\[code\] <rule name="Redirect from ir to com" stopProcessing="true"> <match url=".*" /> <conditions> <add input="{HTTP_HOST}" pattern="^www\.testsite\.ir$" /> </conditions> <action type="Redirect" url="http://www.testsite.com/{R:0}" /> </rule>\[/code\]Any help would be appreciated!