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

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -