302 to 301
-
Hello,
We have a temporary redirect (302?) from http url to https url. Seomoz has suggested that we change the 302 temporary redirect to a permanent 301 redirect.
Sounds good.... but how do we do that?!
Appreciate any and all feedback!
-
Coming in late on this thread. There's actually muliple ways to redirect from http to https, depending on your server configuration and so on. It's very possible your developer did set this up in the .htaccess file. If a 301 isn't defined (or none is defined) I believe it can default to a 302.
I see Sanket has volunteered his help. Yay! Let us know what you find or if you need any help.
-
Can you PM me your httaccess code ? And your website URL ?
-
I found the .htaccess file. Inside I can find several places where there is a redirect to use WWW., or not. But I can't find the place where it says redirect http to https. What sort of text might it say?
Thanks!
-
It should be on root folder or in "public html" folder.
-
Hi Guys,
Thanks for the reply. Actually, the original site developer made the 302 redirect. I found the httaccess file, but I can't see how to change the 302. I found several instances in the file where 301 is mentioned, but so far I can't find a reference to 302. Any idea what I should be looking for?
-
May I know which platform are you using ? And how you have done 302 redirect ?
If you have done it through httaccess file then KLLC is right, just replace 301 in place of 302.
-
Hello,
Its pretty simple by replacing 302 to 301, as you already have 302 redirect from HTTP to HTTPS. If you have done it with .htaccess just edit the file and just replace 302 with 301.
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Pages giving both 200 and 302 reponce codes?
We are having some issues with response codes on our product pages on our new site. It first came to my attention with the mozbot crawl which was picking up 1000s of 302 redirects, but when I checked them manually there was no redirect (and even the moz toobar was giving a 200 status) I then check with this tool http://tools.seobook.com/server-header-checker/?page=single&url=https%3A%2F%2Fwww.equipashop.ie%2Fshop-fittings-retail-equipment%2Fgridwall%2Fgridwall-shelves%2Fflat-gridwall-shelf.html&useragent=2&typeProtocol=11
Technical SEO | | PaddyDisplays
And its showing that there are 2 responses at 302 and a 200 ( but with the same bot under googlebot setting only shows the 200 status). I'm also getting no warning about it in WMTs Does anyone know what's happening here and how worried about it should I be as it seems goggle is using only the 200 status btw the developer thinks it something to do with how the browser is handling the canonicallink, but I'm not convinced Thanks0 -
Temporary Redirect 302 to subdomain for a couple of weeks?
Hi, To prevent DDOS attack during the Olympic Game the admins will use a service call Site Shield by Akamai (http://www.akamai.com/html/solutions/site_shield.html). The thing is that they will have to redirect all the trafic to a subdomain instead of the main one (http://www.website.com instead of http://website.com) and this for a couple of week (no negotiation here, it's too late and they have no choice). Does a 302 will do the job? Will I loose authority? Does adding a canonical URL on every pages of the site removing the www from the URL will help? Should I do something on webmaster tool to help? Thanks.
Technical SEO | | TVFreak0 -
Does 301 redirect of old filenames still work?
I have gone through several revisions of my site. We used to have only static pages in HTML. I had search-engine-optimization.html changed to seo-philippines.html changed to /seo-philippines/ I 301 redirected all of them whenever I change the filenames. This is in the course of 6 years worth of link building and I'm wondering if this has an effect because our rankings go down everytime we do this.
Technical SEO | | optimind0 -
301 redirects
Hello. Our site was recently rebuilt, and we switched from using index.php in all the urls to not using it at all. We also changed the names of many of our pages. So the urls have been renamed from "example.com/index.php/old_page_name/" to "example.com/new-page-name/". While we were at it, we changed from "_" to "-" as our word separators in the urls. In the .htaccess file, we have a small block of code that strips out "index.php/" from all requests. This code redirects a request for "example.com/index.php/old_page_name/" to "example.com/old_page_name/" For your information, the code that strips out "index.php/" is: RewriteCond %{THE_REQUEST} ^GET.index.php [NC]
Technical SEO | | nyc-seo
RewriteCond %{THE_REQUEST} !/uSZWTLna/.
RewriteRule (.?)index.php/(.*) /$1$2 [R=301,L] Then we have 301 redirects from "example.com/old_page_name/" to "example.com/new-page-name/" QUESTION 1: Is this two-step redirect approach okay, or would it be better to skip the separate index.php stripping code and simply have 301 redirects that include "index.php" in the urls? QUESTION 2: Will we lose some of the benefit of the links that have to pass through a 301 redirect? QUESTION 3: We have 50 or so redirects. Will this affect performance of the site? How many redirects does it take to start affecting performance? Thank you!0 -
Can You 301 Unwanted Links to Another Site?
I am trying to clean up my link profile, and have noticed that a I have a lot of crappy inbound links linking to some of my old pages. And those old pages have since been 301'ed to current pages. My question is, is it worth trying to 301 those old pages, and thus those crappy links, to another website? Would this do anything to clean up my link profile?
Technical SEO | | red6marketing0 -
Do 301 redirects now allow most of the bad value to pass through?
I heard after the 3.2 update that most of your bad history passes though the 301 redirect.. What do you guys think out there?
Technical SEO | | Merta19801 -
301 Redirect & re-use
I have an old site which is being moved to a new tld due to re-branding. I understand I would do a series of 301 redirects from the pages of the old site to capture the authority and move to the new site. However, at some point in the future (probably 1-2 years) we may want to re-use the old site again for a different brand (it has a good brand, just not for what we're going after). Question is - can a redirected site be re-used at some point in the future? And if so, which site would new authority (links, etc.) go to?
Technical SEO | | uwaim20120 -
Wordpress 301 redirects
I use wordpress as CMS on a few sites and I noticed that word press automattically places 301s if I change a url etc. I believe it does it by having the following in the .htaccess file: BEGIN WordPress<ifmodule mod_rewrite.c="">RewriteEngine OnRewriteBase /RewriteRule ^index.php$ - [L]RewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-dRewriteRule . /index.php [L]</ifmodule> END WordPress Should I use this? I feel like it limits my control over the 301s.
Technical SEO | | mmaes0