Equivalent Url Rewrite in .NET? -


i'm lamp background. i'm trying come .net equivalent following .htaccess file

rewritecond %{request_filename} !-d rewritecond %{request_filename}\.php -f rewritecond %{query_string} (.*) rewriterule ^(.*)\/?$ $1.php?%1 [l] 

in php world, put code .htaccess file sits in web root. each of following urls http://mysite.com/helloworld, http://mysite.com/helloworld.php, , http://mysite.com/helloworld?param=5 , http://mysite.com/helloworld.php?param=5 resolve page helloworld.php, latter 2 having $_get['param'] populated. how achieve same results in .net world aspx pages?

i using asp.net web forms.

thanks

you either download , install urlrewrite 2.0 httpmodule manually www.iis.net, or use web platform installer (wpi) install it. personally, prefer wpi.

grab wpi here: http://www.microsoft.com/web/downloads/platform.aspx

it let install , configure aspects of windows web development environment.

-oisin


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -