iis - Redirect all the requests to a another directory -
i'm using bellow web.config redirect requests folder. problem requests coming files want redirected.
<?xml version="1.0" encoding="utf-8"?> <configuration> <system.webserver> <httpredirect enabled="true" destination="http://www.mysite.com/ppc/" /> </system.webserver> </configuration>
example http://www.mysite.com/original/ http://www.mysite.com/ppc/ works
but http://www.mysite.com/original/a.php http://www.mysite.com/ppc/ not works.
it ended going http://www.mysite.com/ppc/a.php
please help.
try using iis url rewrite module rather issuing redirects or use url rewrite redirects on pattern matches.
Comments
Post a Comment