htaccess 301 error
-
Getting error in ahrefs for 301 redirect. So my guess is redirect everything to https://. If im not right, let me know ?? Since page is crawled with google not very smart to change structure of url, so… 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.
<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] </IfModule>
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘htaccess 301 error’ is closed to new replies.