SMF Support > SMF 2.0.x Support
How to change this redirect from 301 to 302?
(1/1)
James---:
Hello,
When we check our redirects with this redirect checking tool http://www.internetofficer.com/seo-tool/redirect-check/,
we notice that one of our forum's URL redirects from http:// to http://www (so from non-www to the www version)
with a 302 temporarily redirect instead of a 301!
This is not ideal for SEO, because what we want is a redirect which is for always and not temporarily. This has impact on SEO.
How do we change this 302 redirect into a 301? We checked .htaccess, but the redirect is not even in there.
MrPhil:
There's nothing in the .htaccess file(s)? I assume you're on an Apache server (which uses .htaccess) and not IIS (which doesn't). You should see something like
--- Code: ---RewriteEngine On
RewriteCond %{HTTP_HOST} ^yourdomain\.com [NC]
RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [L]
--- End code ---
That's a 302. Change [L] to [R=301,L] to get a 301 (permanent) redirect.
Navigation
[0] Message Index
Go to full version