Hello! I'm using a service to host my website. It uses IIS 8.5, and doesn't lets IIS Management Console connect to it remotely. So I have to manually edit the web.config file. I want to rewrite URL for a single subdomain (say "welcome"). I do not need to use {C:1} or {R:1} for this since I want to rewrite only one subdomain. I'm using the following code in my web.config, to rewrite http://welcome.website.com to http://www.website.com/welcome:
<?xml version="1.0" encoding="UTF-8"?><configuration><system.webServer><rewrite><rules><rule name="rewrite welcome"><match url="welcome.website.com" /><action type="Rewrite" url="www.website.com/welcome" /></rule></rules></rewrite></system.webServer></configuration>
But this is not working. I went through many guides but can't get this simple thing to work. How can I do this?
Thank you!
- Prateek Jain