Internet > Web Hosting & Web Design

DNS records or htaccess help please

(1/12) > >>

kitz:
Can anyone help me to see what I've done wrong and what I need to do to correct this.

Site has today gone over to SSL and I thought everything was ok and appears to be on face value but I just noticed the following with incoming links.
For example if you search on google, for the various subdomains Im getting different results than previously.

Google says www.kitz.co.uk yet now you end up at https://kitz.co.uk    (no www)
Google says forum.kitz.co.uk which directs to https://kitz.co.uk/forum  (want the subdomain not a folder)
Google says wiki.kitz.co.uk which now directs to https://kitz.co.uk/wiki (folder rather than the subdomain - which breaks the wikimedia software)

kitz:
or is this something to do with LetsEncrypt?

g3uiss:
A couple of potential issues

1) google hasn’t complicated its crawl
2) if you have a site map that has been notified to google via analytics or webmaster tools has this been updated with the new it’ll ( adding the “s” )

The fact it’s resolveable in a browser suggests it’s DNS etc is fine. Google has got its links wrong. Best solution is pershaps a new site map uploaded to Google

Tony

kitz:
Sorry I perhaps didn't explain too well the problem.

Google has all the following results cached in its search results for the site which are correct and how I want them to be

www.kitz.co.uk
forum.kitz.co.uk
wiki.kitz.co.uk

Yet if you click on any of those links you end up at the following respectively - which isnt what I want.

https://kitz.co.uk/
https://kitz.co.uk/forum
https://kitz.co.uk/wiki

So it appears to be ignoring the subdomains and I think perhaps its the redirect thats wrong.  This is part of my htaccess added by my hosts


--- Code: ---RewriteEngine On
RewriteCond %{HTTPS} !on
RewriteRule ^(.*)$ https://kitz.co.uk/$1 [R=301,L]

#RewriteCond %{HTTP_HOST} ^kitz.co.uk
#RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
#RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$
#RewriteCond %{REQUEST_URI}
--- End code ---

Perhaps something else needs adding there, or could it be..and something which I'm beginning to suspect may not be helping, I think they may have requested just one cert for everything on the kitzcouk account.

The server was orig config in my name using WHM but is further split into 2 cpanel accounts
The first one has a couple of parked domains which arent really used for anything other than my personal mail.
The second one is where all the traffic is and anything related to the broadband site.

If I check the certificate it says


--- Code: ---Common name: kitz.co.uk
SANs: broadbandinfo.kitz.co.uk, broadbandinfo.net, cpanel.kitz.co.uk, forum.kitz.co.uk, kitz.co.uk, mail.broadbandinfo.net, mail.kitz.co.uk, webdisk.broadbandinfo.net, webdisk.kitz.co.uk, webmail.kitz.co.uk, wiki.kitz.co.uk, www.broadbandinfo.kitz.co.uk, www.broadbandinfo.net, www.forum.kitz.co.uk, www.kitz.co.uk, www.wiki.kitz.co.uk
Valid from April 27, 2018 to July 26, 2018
--- End code ---

which is basically everything on the 2nd account.

Weaver:
I don't understand the first rewrite rule in your .htaccess. $1 is going to be the whole match string, so if you pass it "fred" it will just convert that to "https://kitz.co.uk/fred" won't it?

have I misunderstood?

If something like fred is being passed to it, then what about
"^([^.]+)$" to "https://$1.kitz.co.uk"

or even

"^(http:\/\/)?([^.]+)(.kitz.co.uk)?$" to "https://$2.kitz.co.uk"

Do forgive me as I suspect I haven't understood at all.

Navigation

[0] Message Index

[#] Next page

Go to full version