Forwarding https://domain.com to https://www.domain.com

DucNguyen1990

Member
Oct 24, 2019
7
1
3
Germany
cPanel Access Level
Reseller Owner

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,297
1,251
313
Houston
Hello,

You should be able to do this using the redirects option in cPanel>>Domains>>Redirects. What didn't work? This adds the redirect rule into the .htaccess for you so it'd be the same process.
 

DucNguyen1990

Member
Oct 24, 2019
7
1
3
Germany
cPanel Access Level
Reseller Owner

Attachments

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,297
1,251
313
Houston
I'd deselect wildcard on the redirect to Website Domains Names & Hosting | Domain.com. Based on what you're showing me there should be no reason why it doesn't function, when you attempt to go to domain.com, what is the output in the apache error logs for the redirect? You can find them here: /etc/apache2/logs/error_log
 

DucNguyen1990

Member
Oct 24, 2019
7
1
3
Germany
cPanel Access Level
Reseller Owner
Hello Lauren, I´d deselect wildcard but If I checked the redirect the behaviour is the same. If you want we can do a remote session I could show you the problem. Is this possible on 3. Feb ?
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,297
1,251
313
Houston
Hello,

We can't do remote sessions like that but the wildcard redirect assumes the same file/folder structure is present on the domain forwarded to. Further than that, the apache error logs requested would be helpful to determine why the redirect isn't functioning.