Domain issue

Peter_1985 2,691 Reputation points
2024-12-23T06:37:27.7666667+00:00

Hi,

On Windows server, what to adjust if I expect to use

www.abc.shop

instead of

abc.shop

each time when I refer to the web domain? This is not related to SSL certificates, right?

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,550 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,486 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 68,716 Reputation points
    2024-12-23T19:01:31.4133333+00:00

    this is done with a redirect. you have two options:

    the first is an IIS redirect rule.

    https://zcusa.951200.xyz/en-us/iis/configuration/system.webserver/httpredirect/

    the other is in global.asax, in Application_BeginRequest check the path and do a redirect.

    note: if you are using a load balancer, or firewall, they typically have their own redirect capabilities .

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.