title: .htaccess Redirect on Managed GoDaddy Wordpress
body: <p>I'm struggling to implement a redirect that is required by my SEO tool (RankMath).</p>
  <p>As they <a href="https://rankmath.com/kb/couldnt-fetch-error-google-search-console/#5-check-for-the-correct-version-of-the-sitemap" rel="nofollow noreferrer">explain in their guide</a> (point 5.4), I need to 301 redirect everything to either the www or non-www <strong>https</strong> version of the site - I've chosen non-www, so when using <a href="https://httpstatus.io/" rel="nofollow noreferrer">httpstatus.io</a> it should look like this:</p>
  <pre><code>http://www.website.com [301] [200]
  https://www.website.com [301] [200]
  http://website.com [301] [200]
  https://website.com [200]
  </code></pre>
  <p>This should be relatively simple and there are many guides showing multiple ways to do this, however my options are slimmer as I'm stuck with GoDaddy's Managed Wordpress and can't move for a few years.</p>
  <p>The only option with this kind of hosting is to do it via the .htaccess file, but there are existing rules from GoDaddy for SSL and Wordpress and anything I add seems to conflict with theirs.</p>
  <p>Here is what's there by default:</p>
  <pre><code># BEGIN GD-SSL
  &lt;IfModule mod_rewrite.c&gt;
  Options +FollowSymLinks
  RewriteEngine On
  RewriteCond %{HTTPS} !=on
  RewriteCond %{HTTP_USER_AGENT} ^(.+)$
  RewriteCond %{SERVER_NAME} ^abc\.12d\.myftpupload\.com$
  RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
  Header add Strict-Transport-Security &quot;max-age=300&quot;
  Header always set Content-Security-Policy &quot;upgrade-insecure-requests&quot;
  &lt;/IfModule&gt;
  # END GD-SSL
  
  # BEGIN WordPress
  # The directives (lines) between &quot;BEGIN WordPress&quot; and &quot;END WordPress&quot; are
  # dynamically generated, and should only be modified via WordPress filters.
  # Any changes to the directives between these markers will be overwritten.
  &lt;IfModule mod_rewrite.c&gt;
  RewriteEngine On
  RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
  RewriteBase /
  RewriteRule ^index\.php$ - [L]
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule . /index.php [L]
  &lt;/IfModule&gt;
  
  # END WordPress
  </code></pre>
  <p>What do need to add or change in order to get the redirect(s) working as described above, while retaining the existing SSL and Wordpress functionality?</p>