subdomain redirect problem

tuton012

Strive for progress, not perfection
Babiato Lover
Trusted Uploader
May 23, 2019
1,607
2,061
120
Near You
hi, my subdomain keeps redirecting to the main domain I have a wildcard SSL I hear adding code to the .htaccess will fix the problem still can get it working any help or tip thanks
 

tuton012

Strive for progress, not perfection
Babiato Lover
Trusted Uploader
May 23, 2019
1,607
2,061
120
Near You
can you install backup of maindomain to subdomain
what do you mean? my main site is working fine am trying to add a support center for my subdomain for ticket support ect it on a separate folder my main site is domain.com and my subdomain is my.domain.com but if I click my subdomain it takes me right back to my main domain
 

kiosos

Member
Aug 24, 2019
87
11
8
what do you mean? my main site is working fine am trying to add a support center for my subdomain for ticket support ect it on a separate folder my main site is domain.com and my subdomain is my.domain.com but if I click my subdomain it takes me right back to my main domain
check your script .htaccess section
 

tuton012

Strive for progress, not perfection
Babiato Lover
Trusted Uploader
May 23, 2019
1,607
2,061
120
Near You
i did i got this

RewriteEngine on
RewriteBase /
RewriteCond $1 !^(index\.php|resources|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule ^(.*)$ index.php?/$1 [L,QSA]
AddDefaultCharset utf-8
 

tuton012

Strive for progress, not perfection
Babiato Lover
Trusted Uploader
May 23, 2019
1,607
2,061
120
Near You
i fix it finally here was the problem From what I checked, the Wildcard SSL didn't quite properly include my.domain.com and was causing the weird redirect I replied the SSL certificate and it got a fix thanks for your help I really appreciate
 
  • Love
Reactions: kiosos

actnow

Active member
Oct 19, 2019
126
140
43
Hey, was this related to WordPress multisite?
Great you solved it.
What wildcard SLL are you using?
Thanks
 

About us

  • Our community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day to make sure our community is one of the best.

Quick Navigation

User Menu