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.
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
-
Redirect 301 to homepage
Hello there, I have some low quality pages in my site, can I redirect 301 them to my homepage? My website is: https://idanito.com idanito.com
Technical SEO | | dannybaldwin0 -
301 Redirects Showing As 307 Redirects
Hi, Our clients are adamant that they have set up 301 permanent redirects on their websites, but when we check using Screaming Frog and various online HTTP status code checkers they are showing as 307 temporary redirects. Examples;
Technical SEO | | Webpresence
http://www.lifestylelifts.co.uk/home-lifts/
http://www.terrylifts.co.uk/ Again, the client says they are seeing 301 redirects. Why are we seeing 307's? Who is right? Very puzzling, any theories would be very much appreciated 🙂 Thanks in advance. Lee.0 -
150 products 301 redirect to HOME page, any impact?
If redirect 150 products to the home page, will I be penalize? It does not look like I can have access to cPanel on this platform, BigCommerce and i moves my old domain to this plateforme, the only option I might have his to redirect everythings to home page. Thank you, BigBlaze
Technical SEO | | BigBlaze2050 -
301 redirects and seo..
I bought a domain and it has nice traffic. It only has about 5 main pages in php When i got the site i switched to html because php was overkill. I did the 301 and google deleted the php files and replaced with html version when i check site:domain.com It has been about 7 days. I DID NOT use 301 for each of the 5 pages to go php to html instead is used this code RewriteEngine On
Technical SEO | | samerk
RewriteCond %{HTTP_HOST} ^mydomain.com
RewriteRule (.) http://www.mydomain.com/$1 [R=301,L]
RedirectMatch 301 (.).php$ http://www.mydomain.com$1.html So basically if you load php it will load the html version. dog.php > dog.html Is this OKAY? or should it be done differently.... worried! Thanks !0 -
Penguin 301 Re-Direct
Hi I already know the answer to this but wanted some backup. A friend of mine has asked me to take a look at his site. He was using an SEO company that saw him get hit hard by Penguin. He did the right thing and started all over with a new domain name. I've just noticed that the old domain name is actually setup to 301 to the new domain. This has to be a bad thing right?
Technical SEO | | brightonseorob0 -
What would happen if 301 redirects were not in place
Good Morning from 14 degrees C sunny Wetherby UK 🙂 My question is please.... "When a new site is given a total makover ie old urls are re written to radically different ones I know if you dont set up 301 redirects the infamous 404 error page will rear its head. But i wonder if 301 redirects were not configured how long on average does it take google to index the new site and serp links finally point to the new site". Thanks in advance 🙂
Technical SEO | | Nightwing0 -
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 -
301 Redirect & Cloaking
HEllo~~~~ People. I have a question regarding on cloaking. I will be really greatful if you can help me with question. I have a site www.example.com and it is targeting for multi countries. So I use sub directories for targeting multi countries. e.g. www.example.com/us/ www.example.com/de/ www.example.com/hk/ ....... so on and on. Therefore, when people type www.example.com, I use IP delivery to send users to each coutries. Here is my question. I use 301 redirect for IP delivery, which means when user enter www.example.com, my site read user's IP and send them to right country site by 301 redirect. In this case, is there any possibility that Google considers it as cloaking? Please people.... share me some ideas and thoughs.
Technical SEO | | Artience0