Microsoft-azure-clouds on SERPland Blog View RSS

Recent content in Microsoft-azure-clouds on SERPland Blog
Hide details



Change subdomain with HTTPS to www and redirect (301) from HTTPS subdomain to HTTPS-WWW 13 Jun 2024 4:00 PM (10 months ago)

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.

A) Transfers from Wordpress to Hugo to Azure Static Web Apps 🔗

There are many tutorials on the internet for this, good, simple, flawed and complicated. My approach was:

  1. default full export to wordpress
  2. then use tool to switch from wordpress export xml file to hugo markdown files
  3. hugo runs locally on my PC, I use the markdown files from step 2
  4. categories/tags may require manual adjustments
  5. new repository on Github, generate hugo pages locally and push to Github
  6. create Azure Static Web App
  7. through the push from step 4, the static page is automatically created on Azure by a Github action
  8. switch DNS entries to Azure once (see next section)

B) Subdomain mit HTTPS auf www umstellen und Redirect (301) von HTTPS-Subdomain zu HTTPS-www 🔗

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!

HTTPS Redirect

More information on the Redirect-Pizza info page

Add post to Blinklist Add post to Blogmarks Add post to del.icio.us Digg this! Add post to My Web 2.0 Add post to Newsvine Add post to Reddit Add post to Simpy Who's linking to this post?

D: Subdomain mit HTTPS auf www umstellen und Redirect (301) von HTTPS-Subdomain zu HTTPS-WWW 13 Jun 2024 4:00 PM (10 months ago)

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.

A) Übernahmen von Wordpress zu Hugo zu Azure Static Web Apps 🔗

Dazu gibt es im Internet viele Anleitungen, gute, einfache, fehlerhafte und komplizierte. Mein Ansatz war:

  1. Default Full-Export auf Wordpress
  2. Dann Tool verwenden umd von wordpress export xml file zu hugo markdown files umzustellen
  3. lokal auf meinem PC läuft Hugo, ich verwende die markdown files aus Schritt 2
  4. Kategorien/Tags erfordern eventuell manuelle Anpassungen
  5. Auf Github neues Repository, hugo pages lokal generieren und zu Github pushen
  6. Azure Static Web App erstellen
  7. Durch den Push aus Schritt 4, wird durch eine Github Action automatisch die Static Page auf Azure erstellt
  8. DNS Einträge einmalig auf Azure umstellen (siehe nächster Abschnitt)

B) Subdomain mit HTTPS auf www umstellen und Redirect (301) von HTTPS-Subdomain zu HTTPS-www 🔗

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!

HTTPS Redirect

Mehr Infos auf der Redirect-Pizza Infoseite

Add post to Blinklist Add post to Blogmarks Add post to del.icio.us Digg this! Add post to My Web 2.0 Add post to Newsvine Add post to Reddit Add post to Simpy Who's linking to this post?