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
-
Is there a way to set up 301 auto redirects from 404s
some of our pages under a specific website section gets deleted from another data source and we want to resolve the problem of 404s can we set up automated 301 redirects to the main page as soon as one of these pages are deleted
Technical SEO | | lina_digital2 -
Http:// to https:// 301 or 302 redirect
I've read over the Q & A in the Community, but am wondering the reasoning behind this issue. I know - 301's are permanent and pass links, and 302s are temporary (due to cache) and don't pass links. But, I've run across two sites now that 302 redirect http:// to https://. Is there a valid reason behind this? From my POV and research, the redirect should 301 if it's permanent, but is there a larger issue I am missing?
Technical SEO | | FOTF_DigitalMarketing1 -
Is it OK to 301 a .jpg (image) to a .html (page) ?
I have some old images that are no longer used, but they have a few decent external links pointing to them. Can I 301 them to the page they used to be on? And if yes, will their link juice flow to the page?
Technical SEO | | GregB1230 -
Has my 301 home page really worked?
Greetings from 53° 57′ 30″ N, 1° 4′ 49″ W otherwise known as York 🙂 I know a site i'm working on has two versions of the home page e.g.
Technical SEO | | Nightwing
http://www.davidclick.com & http://www.davidclick.com/index.htm This morning I delved into the bowels of the ht access file and this is what happened... Firstly i added redirect 301 /index.htm http://www.davidclick.com nope that broke everything 😞 I then amended to redirect 301 /index http://www.davidclick.com Can anyone re assure me ive done the right thing in terms of resolveing my home page canonical problem? Thanks in advance 🙂0 -
301 Redirect
The SEOmoz crawl campaign found some 404 errors in my Joomla site poker-brands.ca. So, I figured I would set up 301 redirects in my hosting account to make sure bots don't read that there is a page missing. For example: This link gave a 404 error in the crawl: http://www.poker-brands.ca/download-pokertracker-software/holdemmanager I redirected it to: http://www.poker-brands.ca/download-pt3-pokertracker-software/holdemmanager-hem-hm2 However, when I visit the first link it doesn't send me to the second link. Am I supposed to get forwarded to the second link now?
Technical SEO | | Uramark0 -
301 Redirect Properly To Keep the Juice
I have a bunch of WP Blogs and was thinking of taking all linkjuice from these to my main money site. The most of the other WP Blogs is hosted at godaddy.com (domain and site) and I know they have a URL Redirects page in site manager but I`m not sure this is the right way to go. Also I wonder some of these sites have hundreds of blogposts there is no way I can "re-create" those on the money site but I am sure that is not a must-thing to do in order to keep the "juice" right or wrong? Last but not least, I was wondering if you think it would be best to redirect the sites to relevant pages on money sites. For instance if i had a domain called cheap-ties.com with 100 blogposts about this and on money site a webshop with a category called ties, should redirect to this or to main domain or doesnt it matter?
Technical SEO | | fAgBxa8b0 -
How do I clean up this 301 disaster?
I launched my site, InternetCE.com, and blog, www.continuingeducationjournal.com, a few years ago. I then learned I should probably merge the content, and foolishly created a subdomain, http://blog.internetce.com, and 301 redirected the blog to it. As an aside, my site is on a microsoft server, thus cannot host my wordpress blog on it. After a bit more study, I realized that my blog wasn't helping me nearly as much as it could be, so I 301'd it again to http://internetce.com/blog. In just becoming a pro member (long overdue) I realize that my entire site needs to be 301'd to merge non-www and www versions. I read somewhere that mr. cutts says not to 301 more than twice for fear of mistakenly being construed as something a bit to spammy. So, here I sit..not sure what to do. Does anyone have any advice on how to most efficiently correct this spaghetti bowl? Many thanks!
Technical SEO | | adell500 -
How many jumps between 301 redirects is acceptable?
For example, I have a page A that should be redirected to page D, but instead A redirects to B, B redirects to C and C redirects to D. It's something I came across and wondering if its worth the dev time to change it. Thanks!
Technical SEO | | pbrothers240