Getting error in ahrefs for 301 redirect. So my guess is redirect everything to https://. If im not right, let me know :) Anyways, even if my guess is right, cannot figure out how to do it propertly, not strong in redirects at all. Will appreciate suggestions or solution. picture of error from ahrefs

At moment htaccess file looks like

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# Rewrite HTTP to HTTPS
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*) https://%{SERVER_NAME}/$1 [R,L]
  • really nobody here? – badctrl May 12 at 20:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.