简体   繁体   中英

How do you properly redirect in IIS to subdirectory?

I have an IIS site that is under the 'Default Web Site'. I need my www.blahblahblah.com to go to www.blahblahblah.com/site

I have tried HTTP Redirect in the IIS console but it ends up redirecting too many times and not working. What is the proper way to do this?

Thank you!

Try set /site$S$Q . Note: $S$Q is to save everything goes after /site , eg query string. Also, if you're using IIS 7+, you might need to use $V$Q .

in your default page in www.blahblahblah.com do a server.transfer or a response.redirect to www.blahblahblah.com/site. Your choice which method to use. See here for a community discussion on it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM