You must Sign In to post a response.
  • Category: .NET

    URL Rewriting from subdomain to maindomain

    Hi Friends,

    I have a scenario to redirect my subdomain to main domain without changing the subdomain URL.

    I have a subdomain like blog.example.com whenever I type this URL into my browser it should load the content from https://www.example.com/blog but the URL should not change.

    Let me know is there anybody implemented this.

    Thanks in advance.
  • #769708
    IIS rewrite rules will work for your scenario. So, the domain names need to point to web server, and they need to be bound to the IIS instance.

    you can check below link for more details.
    https://stackoverflow.com/questions/43140142/iis-rewrite-module-subdomain

    Thanks!
    B.Ramana Reddy


  • Sign In to post your comments