<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Migrate a website from Plusnet webspace to Microsoft Azure (Static Web Apps) - free in most case in Everything else</title>
    <link>https://community.plus.net/t5/Everything-else/Migrate-a-website-from-Plusnet-webspace-to-Microsoft-Azure/m-p/1871210#M28718</link>
    <description>&lt;P&gt;If you have just a single custom domain, (or happy for all requests to end up at the same single domain)&lt;/P&gt;
&lt;P&gt;you can use a slightly simpler&amp;nbsp;&lt;STRONG&gt;.htaccess&amp;nbsp;&lt;/STRONG&gt;file that would look like this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Redirect 301 / https://www.yourdomain.com&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 15 May 2022 19:39:28 GMT</pubDate>
    <dc:creator>TimDSMoss</dc:creator>
    <dc:date>2022-05-15T19:39:28Z</dc:date>
    <item>
      <title>Migrate a website from Plusnet webspace to Microsoft Azure (Static Web Apps) - free in most cases</title>
      <link>https://community.plus.net/t5/Everything-else/Migrate-a-website-from-Plusnet-webspace-to-Microsoft-Azure/m-p/1871152#M28695</link>
      <description>&lt;P&gt;If you have a website hosted by Plusnet on their "webspace" system and you're looking to move it elsewhere,&lt;/P&gt;
&lt;P&gt;in particular, if you want to do this at no cost,&amp;nbsp; then ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"&lt;STRONG&gt;Microsoft Azure Static Web Apps&lt;/STRONG&gt;" might be a viable option for you -&amp;nbsp;it worked for me.&lt;/P&gt;
&lt;P&gt;learn more about their solution here: (&lt;A href="https://docs.microsoft.com/en-us/azure/static-web-apps/overview" target="_blank"&gt;What is Azure Static Web Apps? | Microsoft Docs&lt;/A&gt;)&lt;/P&gt;
&lt;P&gt;lots of nice benefits.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Follow the "Quickstart" guide(s) on the page linked above, and you'll have your site up and running very quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have your own ("custom") domain name and this is registered with Plusnet and hosted on their DNS system, then things start to get a little bit tricker, if you want those domain names to take wbe users to your new site you just created on &lt;STRONG&gt;MS Azure Static Web Apps.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Just in case it helps anyone else trying this, or looking for an option, I thought I'd share how I got it working.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;(FYI&amp;nbsp;&lt;/STRONG&gt;much of the below will also be relevant if you intend to use &lt;STRONG&gt;MS Azure App Service&amp;nbsp;&lt;/STRONG&gt;to run your new website)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Image your domain is "&lt;STRONG&gt;yourdomain.com&lt;/STRONG&gt;":&lt;/P&gt;
&lt;P&gt;As it stands, if someone enters&amp;nbsp;&lt;SPAN&gt;"&lt;STRONG&gt;ww&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;w.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;yourdomain.com&lt;/SPAN&gt;&lt;SPAN&gt;"or just "yourdomain.com" into their browser, they'll see the website hosted on Plusnet webspace.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Getting&amp;nbsp;&lt;SPAN&gt;"&lt;STRONG&gt;ww&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;w.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;yourdomain.com&lt;/SPAN&gt;&lt;SPAN&gt;" to take them to your new website on MS Azure is pretty easy.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;First go to the "Manage your domains" section on the Plusnet member portal.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Add a new "&lt;STRONG&gt;CNAME&lt;/STRONG&gt;" record with jus&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;- "www" in the left hand box (without the quotes)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;- the name provided by MS Azure in the right hand box - but be &lt;STRONG&gt;sure&amp;nbsp;&lt;/STRONG&gt;to add a "." (dot) on the end of it.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Wait a while for this change to effect (can take 24 hours or so, but if done in the evening will typically be ready the next day)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;NB.&amp;nbsp;&lt;/STRONG&gt;&lt;STRONG&gt;the site will be offline from the time the change above takes effect, until the time you complete the steps below&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Then in the relevant place in the MS Azure portal&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;- add a "custom domain" to your web app&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;- enter&amp;nbsp;"&lt;STRONG&gt;ww&lt;/STRONG&gt;&lt;STRONG&gt;w.&lt;/STRONG&gt;yourdomain.com"&amp;nbsp;as it's name, and select "&lt;STRONG&gt;CNAME&lt;/STRONG&gt;" as the verification method.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;- it'll whir away for a minute or so, when complete (all going well) it'll all be working.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Entering&amp;nbsp;"&lt;STRONG&gt;ww&lt;/STRONG&gt;&lt;STRONG&gt;w.&lt;/STRONG&gt;yourdomain.com"&amp;nbsp;into a browser will now take you to the new MS Azure hosted web app.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;It will work with both HTTP and &lt;STRONG&gt;HTTPS&amp;nbsp;&lt;/STRONG&gt;(secure protocol, which did not work on Plusnet webspace)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;- MS Azure automatically creates an "SSL certificate" for your new site/domain anad will automatically renew it as and when needed.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;So far so good! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;However, if a user types in "&lt;STRONG&gt;yourdomain.com&lt;/STRONG&gt;" into their browser (i.e without the&amp;nbsp;&lt;STRONG&gt;www.&amp;nbsp;&lt;/STRONG&gt;prefix) then this will still ttake them to the Plusnet hosted webspace (the old website).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Sadly, you can't just repeat the process you did above.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Microsoft Azure Static Web Apps&amp;nbsp;&lt;/STRONG&gt;ask you to&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;setup a new&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG style="font-family: inherit;"&gt;ANAME&lt;/STRONG&gt;&lt;SPAN&gt; or &lt;/SPAN&gt;&lt;STRONG style="font-family: inherit;"&gt;ALIAS&amp;nbsp;&lt;/STRONG&gt;&lt;SPAN&gt;record in DNS for&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;STRONG style="font-family: inherit;"&gt;yourdomain.com&lt;/STRONG&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;but &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;- Plusnet DNS system doesn't support these types of records.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;- You can't use a &lt;STRONG&gt;CNAME&lt;/STRONG&gt; record for the base/root/apex domain (i.e.&amp;nbsp;"&lt;STRONG&gt;yourdomain.com&lt;/STRONG&gt;" without the www.)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;- Plusnet DNS system does NOT support "&lt;STRONG&gt;CNAME flattening&lt;/STRONG&gt;"&amp;nbsp;(a potential alternative suggested on the Azure porta)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Even if they did, then to verify the new record, MS Azure asks you to also create a new "&lt;STRONG&gt;TXT&lt;/STRONG&gt;" record (using a unique code they generate for you)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;- Plusnet DNS system doesn't support &lt;STRONG&gt;TXT&lt;/STRONG&gt; records either&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It may look like you'll need to migrate your domains out of Plusnet into another DNS provider&lt;/P&gt;
&lt;P&gt;(e.g. GoDaddy), which takes time, a support call or two, and some money.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All is not lost though.&lt;/P&gt;
&lt;P&gt;One solution without migrating the DNS domains is to&lt;/P&gt;
&lt;P&gt;- configure your old Plusnet website, to "redirect" users to your new one.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To do this you can upload via FTP in the normal way a new text file to your Plusnet webspace.&lt;/P&gt;
&lt;P&gt;It must be named "&lt;STRONG&gt;.htaccess&lt;/STRONG&gt;" (with a leading "dot")&lt;/P&gt;
&lt;P&gt;Put it into the old website's "root folder" (in your webspace on Pluset)&lt;/P&gt;
&lt;P&gt;by default this is a folder named "&lt;STRONG&gt;/htdocs/&lt;/STRONG&gt;"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'd recommend creating a new text file on your local machine named just "&lt;STRONG&gt;htaccess&lt;/STRONG&gt;"&amp;nbsp; (with no "." at the front and no ".txt")&lt;/P&gt;
&lt;P&gt;Open/edit it in Notepad&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Add the below and the save it.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;RewriteEngine On
RewriteCond %{HTTP_HOST} ^.*yourdomain(.com|.co.uk)$ [NC]
RewriteRule ^(.*)$ https://www.yourdomain%1/$1 [R=301,L]&lt;/LI-CODE&gt;
&lt;P&gt;Next upload it into /htdocs/ on the FTP site for your Plusnet webspace&lt;/P&gt;
&lt;P&gt;Finally, once it is there rename it to "&lt;STRONG&gt;.htaccess&lt;/STRONG&gt;"&lt;/P&gt;
&lt;P&gt;(ths may seem a bit convoluted, but once the leading "." is in place the file may be treated as "hidden" and disappear from view!)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With this file in place, if a user enters either&amp;nbsp;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;STRONG&gt;yourdomain.com&lt;/STRONG&gt;&lt;SPAN&gt;" or&amp;nbsp;"&lt;STRONG&gt;yourdomain.co.uk&lt;/STRONG&gt;" into their browser,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;they'll first connect to the old Plusnet webspace, but it will immediately "redirect" / bounce them on to a new URL&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;with "&lt;STRONG&gt;&lt;A href="https://www" target="_blank"&gt;https://www&lt;/A&gt;.&lt;/STRONG&gt;" in front.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Since you already (earlier on in the process) got the &lt;STRONG&gt;"www" &lt;/STRONG&gt;subdomains working on MS Azure, the user is now taken to the new site on MS Azure (and helpfully by default, the secure HTTPS version).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS.&amp;nbsp; Repeat all the above for each separate custom domain you have with Plusnet&lt;/P&gt;
&lt;P&gt;- but you'll need extra logic/rules in the "&lt;STRONG&gt;.htaccess&lt;/STRONG&gt;" file&lt;/P&gt;
&lt;P&gt;I'm not going to go into that here, but if you get stuck then this is the reference guide for htaccess files:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://httpd.apache.org/docs/2.4/rewrite/intro.html#htaccess" target="_blank"&gt;Apache mod_rewrite Introduction - Apache HTTP Server Version 2.4&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think "that's all folks"!&lt;/P&gt;
&lt;P&gt;Happy to clarify a bit if any of the above doesn't make sense.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;kind regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tim&lt;/P&gt;</description>
      <pubDate>Sun, 15 May 2022 04:17:11 GMT</pubDate>
      <guid>https://community.plus.net/t5/Everything-else/Migrate-a-website-from-Plusnet-webspace-to-Microsoft-Azure/m-p/1871152#M28695</guid>
      <dc:creator>TimDSMoss</dc:creator>
      <dc:date>2022-05-15T04:17:11Z</dc:date>
    </item>
    <item>
      <title>Re: Migrate a website from Plusnet webspace to Microsoft Azure (Static Web Apps) - free in most case</title>
      <link>https://community.plus.net/t5/Everything-else/Migrate-a-website-from-Plusnet-webspace-to-Microsoft-Azure/m-p/1871210#M28718</link>
      <description>&lt;P&gt;If you have just a single custom domain, (or happy for all requests to end up at the same single domain)&lt;/P&gt;
&lt;P&gt;you can use a slightly simpler&amp;nbsp;&lt;STRONG&gt;.htaccess&amp;nbsp;&lt;/STRONG&gt;file that would look like this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Redirect 301 / https://www.yourdomain.com&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 15 May 2022 19:39:28 GMT</pubDate>
      <guid>https://community.plus.net/t5/Everything-else/Migrate-a-website-from-Plusnet-webspace-to-Microsoft-Azure/m-p/1871210#M28718</guid>
      <dc:creator>TimDSMoss</dc:creator>
      <dc:date>2022-05-15T19:39:28Z</dc:date>
    </item>
  </channel>
</rss>

