{"id":46,"date":"2021-10-29T18:34:00","date_gmt":"2021-10-29T15:34:00","guid":{"rendered":"https:\/\/www.martinsgalins.lv\/?p=46"},"modified":"2021-11-05T19:13:36","modified_gmt":"2021-11-05T16:13:36","slug":"html-redirect-page-with-azure-storage-account","status":"publish","type":"post","link":"https:\/\/www.martinsgalins.lv\/?p=46","title":{"rendered":"HTML Redirect Page with Azure Storage Account"},"content":{"rendered":"\n<p>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.<\/p>\n\n\n\n<p class=\"has-medium-font-size\"><strong>Prerequisites:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Azure Subscription<\/li><li>Access to yourdomain.com management <\/li><\/ul>\n\n\n\n<p class=\"has-text-align-left\"><strong>How to setup<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Create Azure storage account<\/li><li>Enable Static Web site in Data Management Menu, set index.html as Index document name.<\/li><li>Create file index.html on your local computer with following content bellow<\/li><li>Upload index.html to root of $web container<\/li><li>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.<\/li><\/ol>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-html\" data-file=\"index.html\" data-lang=\"HTML\"><code>&lt;!DOCTYPE html&gt;\n&lt;html&gt;\n   &lt;head&gt;\n      &lt;title&gt;Redirect Site&lt;\/title&gt;\n      &lt;meta http-equiv = &quot;refresh&quot; content = &quot;0; url = https:\/\/www.example.com&quot; \/&gt;\n   &lt;\/head&gt;\n   &lt;body&gt;\n      &lt;p&gt;Redirecting...&lt;\/p&gt;\n   &lt;\/body&gt;\n&lt;\/html&gt;<\/code><\/pre><\/div>\n","protected":false},"excerpt":{"rendered":"<p>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 Create Azure storage account Enable Static Web site in Data Management Menu, set index.html as Index document name. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[4,7],"class_list":["post-46","post","type-post","status-publish","format-standard","hentry","category-azure","tag-azure","tag-storage-account"],"_links":{"self":[{"href":"https:\/\/www.martinsgalins.lv\/index.php?rest_route=\/wp\/v2\/posts\/46","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.martinsgalins.lv\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.martinsgalins.lv\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.martinsgalins.lv\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.martinsgalins.lv\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=46"}],"version-history":[{"count":17,"href":"https:\/\/www.martinsgalins.lv\/index.php?rest_route=\/wp\/v2\/posts\/46\/revisions"}],"predecessor-version":[{"id":70,"href":"https:\/\/www.martinsgalins.lv\/index.php?rest_route=\/wp\/v2\/posts\/46\/revisions\/70"}],"wp:attachment":[{"href":"https:\/\/www.martinsgalins.lv\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=46"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.martinsgalins.lv\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=46"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.martinsgalins.lv\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=46"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}