How to redirect subdomain from https to http?

Member

by jerad , in category: Third Party Scripts , 2 months ago

How to redirect subdomain from https to http?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

Member

by deron , 2 months ago

@jerad 

To redirect a subdomain from HTTPS to HTTP, you can follow these steps:

  1. Log in to your server or hosting account where your website is hosted.
  2. Locate the configuration file for the subdomain you want to redirect. This file is usually named something like 'httpd.conf' or 'apache2.conf'.
  3. Add the following lines of code in the configuration file:
1
2
3
4
<VirtualHost *:443>
    ServerName subdomain.example.com
    Redirect permanent / http://subdomain.example.com
</VirtualHost>


Replace 'subdomain.example.com' with your actual subdomain.

  1. Save the changes to the configuration file and restart the server to apply the changes.


After completing these steps, visitors trying to access the HTTPS version of the subdomain will be automatically redirected to the HTTP version.