Domain Forwarding Problem

lisanspace

Regular Member
Joined
Jun 17, 2021
Messages
210
Reaction score
106
Hello, I have a domain named xxxx.com and I will redirect it to the cccc.com domain.

I provided this from my domain panel, but while my "http://xxxx.com" domain is redirected, my "https://xxxx.com" domain gives an error and does not open. What's the problem? How do I solve the HTTPS Problem? My HTTPS site should also be redirected.
 
Hello, I have a domain named xxxx.com and I will redirect it to the cccc.com domain.

I provided this from my domain panel, but while my "http://xxxx.com" domain is redirected, my "https://xxxx.com" domain gives an error and does not open. What's the problem? How do I solve the HTTPS Problem? My HTTPS site should also be redirected.

  1. Go to File Manager in your hosting panel and open .htaccess inside the public_html folder. If you can’t locate it, make sure to create or unhide it.
  2. Scroll down to find RewriteEngine Onand insert the following lines of code below it:

    RewriteEngine On
    RewriteCond %{HTTPS} off
    RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
    RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
 
  1. Go to File Manager in your hosting panel and open .htaccess inside the public_html folder. If you can’t locate it, make sure to create or unhide it.
  2. Scroll down to find RewriteEngine Onand insert the following lines of code below it:

    RewriteEngine On
    RewriteCond %{HTTPS} off
    RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
    RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
On which domain should I do this?
 
Back
Top