• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Question redirect Subdomain

TO-Consulting

New Pleskian
Hi,

I have configured a domain redirect: www.domain1.tld -> www.domain2.tld
It is a permanent redirection with Code 301

DNS configuration is:
Typ A Record: domain1.tld -> IP-Adresse
Typ A Record: www.domain1.tld -> IP-Adresse

If I use the url "http://domain1.tld" everything is working fine. If I use the url with the subdomain "http://www.domain1.tld", I get the page from my server. It wouldn't redirect to the "http://www.domain2.tld".

What is wrong with my DNS configurations?

What I want is, that

Regards Thomas
 
Hi TO-Consulting,


Consider to use a "CNAME" entry, as it is an alias of your previous "A" entry for your domain.tld.

Type CNAME www.domain.tld -> domain.tld​
Hi,

denke, wir können auch auf Deutsch "plaudern"!? Das mit dem CNAME Eintrag, habe ich schon probiert. Dabei bekomme ich jedoch vom Hoster wohin ich weiterleiten möchte, nur die allgemeine Seite, dass hier eine neue Webseite entstehen wird. Der einfache Eintrag der Zieldomain ist nicht ausreichen.

Ich habe nun folgendes gemacht:
  • Allgemeine Weiterleitung rausgenommen
  • Wildcard Subdomain angelegt
  • diese Wildcard Subdomain weitergeleitet
Die ersten Tests mit nicht verwendeten Subdomains waren erfolgreich. Nun muss ich warten bis die DNS Server diese Änderung nachgezogen haben und dann kann ich mit auch mit "www" testen.
 
Hi, sorry, here is the translation:

I have used the CNAME entry without any success. I get the default Webpage from the hoster, that there will be a new website, but not the correct website. If I use the CNAME entry, I have to do more than one simple CNAME entry. I have asked for that information.

But I have played a little bit around and I think I found a solution:
  • changed the default forwarding of the domain to a "normal" website
  • create a wildcard Subdomain
  • forward this wildcard Subdomain to the final website
I have tested it with not used Subdomains and it have worked finde. I will wait till then DNS Systems have aged out the old Subdomain entries and than I will trie it again with the "www" subdomain.

Regards Thomas
 
Hi, sorry, here is the translation:

I have used the CNAME entry without any success. I get the default Webpage from the hoster, that there will be a new website, but not the correct website. If I use the CNAME entry, I have to do more than one simple CNAME entry. I have asked for that information.

But I have played a little bit around and I think I found a solution:
  • changed the default forwarding of the domain to a "normal" website
  • create a wildcard Subdomain
  • forward this wildcard Subdomain to the final website
I have tested it with not used Subdomains and it have worked finde. I will wait till then DNS Systems have aged out the old Subdomain entries and than I will trie it again with the "www" subdomain.

Regards Thomas
Hello,
Have you remove the A records before adding the CNAME ? And have you applied the modification ?

Screenshot5.png
 
There is still the problem with the "www" subdomain. With every other subdomain ist works fine, it will be redirected/forwarded. What I have to do to forward also the "www" subdomain?
 
Back
Top