I have a website (blog) with a subdomain on Wordpress and would like to transfer it to Azure Static Web Apps using Hugo I would like to remove the subdomain and set the website (blog) to www. OLD: https://blog.serpland.com NEW: https://www.serpland.com
There are two things to consider here A) Transfer from Wordpress to Hugo to Azure Static Web Apps B) Change subdomain with HTTPS to www and redirect (301) from HTTPS subdomain to HTTPS-WWW. It would be easy if it was old HTTP, it will be difficult with HTTPS. But I have a simple solution.
There are many tutorials on the internet for this, good, simple, flawed and complicated. My approach was:
I have been looking for a solution for a long time Usually you have the following
OLD Domain registrar “Namecheap” –> DNS https://blog.serpland.com –> points to provider “Hostgator”, where my Wordpress “blog.serpland.com” is running
NEW Domain registrar “Namecheap” –> DNS https://blog.serpland.com –> points to provider “Azure”, where my static website generated from Hugo is running www.serpland.com Domain registrar “Namecheap” –> DNS https://www.serpland.com –> points to provider “Azure”, where my static website www.serpland.com generated from Hugo is running
Well, www is no problem, just switch to Namecheap (there are many instructions, the best can be found on the Microsoft Azure learning page).
But now the subdomain, that would also be easy if this subdomain didn’t have a https:// in front of it … I no longer want to use blog.serpland.com and would like to have a 301 redirect from https://blog.serpland.com to https://www.serpland.com. Usually domain registrars like Namecheap can easily create a direct 301 redirect or a DNS entry for the 301 redirect. But apparently not if it is an HTTPS connection. I have tried for hours and also contacted Namecheap support. All to no avail. It always resulted in HTTPS CONNECTION ERRORS.
Finally my really simple solution: The pizza HTTPS Redirect Service Domain registrar “Namecheap” –> DNS https://blog.serpland.com –> points to free redirect service “Redirect Pizza”, this can do https redirects on subdomain level –> 301 redirect to provider “Azure”, there runs my static website www.serpland.com generated from Hugo
So the pizza HTTPS Redirect service is THE solution. Free of charge if you don’t have too much traffic. It’s definitely worth it!
More information on the Redirect-Pizza info page
Ich habe eine Webseite (Blog) mit Subdomain auf Wordpress und möchte diese mittels Hugo zu Azure Static Web Apps übertragen Dabei möchte ich die Subdomain entfernen und die Webseite (Blog) auf www setzen. ALT: https://blog.serpland.com NEU: https://www.serpland.com
Es gibt hier zwei Dinge zu beachten A) Übernahmen von Wordpress zu Hugo zu Azure Static Web Apps B) Subdomain mit HTTPS auf www umstellen und Redirect (301) von HTTPS-Subdomain zu HTTPS-WWW. Es wäre einfach, wenn es altes HTTP wäre, es wird schwierig mit HTTPS. Aber ich habe eine einfache Lösung.
Dazu gibt es im Internet viele Anleitungen, gute, einfache, fehlerhafte und komplizierte. Mein Ansatz war:
Hier habe ich lange nach einer Lösung gesucht Üblicherweise hat man folgendes
ALT Domain Registrar “Namecheap” –> DNS https://blog.serpland.com –> zeigt zu Provider “Hostgator”, dort läuft mein Wordpress “blog.serpland.com”
NEU Domain Registrar “Namecheap” –> DNS https://blog.serpland.com –> zeigt zu Provider “Azure”, dort läuft meine aus Hugo generierte statische Webseite www.serpland.com Domain Registrar “Namecheap” –> DNS https://www.serpland.com –> zeigt zu Provider “Azure”, dort läuft meine aus Hugo generierte statische Webseite www.serpland.com
Nun, www ist kein Problem, einfach auf Namecheap umstellen (da gibt es vielen Anleitungen, die Beste findet sich auf der Microsoft Azure learning seite).
Jetzt aber die Subdomain, das würde auch einfach gehen, wenn diese Subdomain nicht ein https:// vorne dran stehen hätte … Ich möchte ja blog.serpland.com nicht mehr verwenden und möchte einen 301 redirect von https://blog.serpland.com zu https://www.serpland.com haben. Üblicherweise können Domain Registrar wie Namecheap problemlos ein direkter 301 Redirect oder ein DNS Eintrag für den 301 Redirect erstellen. Aber offenbar nicht wenn es eine HTTPS Verbindung ist. Ich habe stundenlang Veruchen unternommen und auch den Namecheap Support kontaktiert. Alles erfolglos. Es resultierte immer in HTTPS CONNECTION ERRORS.
Schlussendlich meine wirklich ganz einfache Lösung: Der pizza HTTPS Redirect Service Domain Registrar “Namecheap” –> DNS https://blog.serpland.com –> zeigt zu Free Redirect Service “Redirect Pizza”, diese kann https redirects auf Subdomain Ebene machen –> 301 Redirect zu Provider “Azure”, dort läuft meine aus Hugo generierte statische Webseite www.serpland.com
Somit ist der pizza HTTPS Redirect Service DIE Loesung. Kostenlos wenn man nicht allzuviel Traffic hat. Lohnt sich allemal!
Mehr Infos auf der Redirect-Pizza Infoseite