Skip to main content

Martins Galins IT Blog

  • Home
  • ABOUT
  • CONTACT

Tag: Storage Account

HTML Redirect Page with Azure Storage Account

29.10.202105.11.2021 Martins Galins Leave a comment

In case you need simple web redirect page from your domain to other (e.g. example.yourdomain.com redirect to www.example.com), use Azure Storage account with static web page functionality.

Prerequisites:

  • Azure Subscription
  • Access to yourdomain.com management

How to setup

  1. Create Azure storage account
  2. Enable Static Web site in Data Management Menu, set index.html as Index document name.
  3. Create file index.html on your local computer with following content bellow
  4. Upload index.html to root of $web container
  5. Configure Custom domain for storage account in Security + Networking menu in Networking submenu, for this step you need access to your domain management platform to create CNAME record to validate that you are owner of domain.
<!DOCTYPE html>
<html>
   <head>
      <title>Redirect Site</title>
      <meta http-equiv = "refresh" content = "0; url = https://www.example.com" />
   </head>
   <body>
      <p>Redirecting...</p>
   </body>
</html>

Archives

  • July 2025
  • October 2021
  • April 2021

Categories

  • Azure
  • Uncategorized

Recent Posts

  • Quick Setup: Terraform Remote State File in Azure with PowerShell
  • HTML Redirect Page with Azure Storage Account
  • Hello world!
sparkling Theme by Colorlib Powered by WordPress