iis 7 - How to redirect in IIS7 for this url format -


i wonder how specific redirection based on scenario below?

when people open url @ browser http://www.test.com/gotogoogle redirect them http://www.google.com.

you can achieve url rewrite module. rule (content of web.config website root folder):

<?xml version="1.0" encoding="utf-8"?> <configuration>     <system.webserver>         <rewrite>             <rules>                 <rule name="go google" stopprocessing="true">                     <match url="^gotogoogle$" />                     <action type="redirect" url="http://www.google.com/" />                 </rule>             </rules>         </rewrite>     </system.webserver> </configuration> 

if have web,config, add appropriate fragment only.


Comments

Popular posts from this blog

javascript - Iterate over array and calculate average values of array-parts -

iphone - Using nested NSDictionary with Picker -

objective c - Newbie question -multiple parameters -