i need to redirect my wabpage from site to another site

tamil selvan 0 Reputation points
2024-03-01T22:04:16.4333333+00:00

https://psybot.iwill.in/login it should redirect to https://iwilla.com/login , how can we do that in azure...and https://iwilla.com/loginrunning vm in azure

Azure DNS
Azure DNS
An Azure service that enables hosting Domain Name System (DNS) domains in Azure.
603 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Sedat SALMAN 13,180 Reputation points
    2024-03-02T05:39:11.54+00:00

    if you are serving your website with a webserver on a vm in azure

    you may have several options

    for IIS

    you can write the following into your web.config

    <configuration>
       <system.webServer>
           <httpRedirect enabled="true" destination="https://iwilla.com/login" exactDestination="true" httpResponseStatus="Permanent" />
       </system.webServer>
    </configuration>
    
    
    

    if it is nginx add a rule to your conf file

    server {
        ...
        return 301 https://iwilla.com/login$request_uri;
    }
    
    

    if you can provide more detail we can provide more specific answer

    0 comments No comments