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

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -