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
-
How to Choose destination page for a 301 redirect?
I am doing some SEO for a wedding chapel in Vegas. There are some old packages that no longer exist and the bounce rate for the page is high so I am planning to 301 the page. How to best determine the best 301 destination? I have a few options. As an example the page was optimized for garden weddings. The page itself does not place well in the SERPS for garden weddings in Las Vegas, but our outdoor wedding packages in Las Vegas page places in the top 10. So that page is in an option. However, there is a different location that has a garden setting. Is that a better choice? Some content might match better than others, but any page I choose would be relevant content. Thank you so much 🙂
Technical SEO | | leslieevarts0 -
Should I set 301 Redirects or keep old permalinks?
I just built a new site for a client and the new site has pretty links like domain.com/about-us. The old site has been around for a VERY long time and had links like domain.com/aboutus. I want to do 301 redirects because from my understanding, it minimizes the negative SEO impact. But the client wants to keep the permalinks without the hyphens to match the old links. What is the best route, considering SEO? BTW, the site is still on the same domain. Thanks in advance for your help! Neik
Technical SEO | | glassh0use0 -
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 -
Canonicalising To A 301?
Hi there, We currently make use of a 301 rule to always return the trailing slash version of any URL on the site. Recently, it seems that the canonical tag was implemented incorrectly. Here's an example: http://www.zando.co.za/women/shoes is redirected to http://www.zando.co.za/women/shoes/ (trailing slash) However, our canonical tags, across the site, are going to the non-slash version, as follows: I'm right in saying this really damaging? Also, if I instruct the Dev team to implement a site-wide fix by adding the trailing slash in all cases, can I expect any weird side affects on my current rankings/indexation? If so, I can only imagine it being a short-term thing as Google re-aligns it's index of our site? I treat canonical tags with plenty of caution. 😉 Any insights appreciated. Cheers, P.
Technical SEO | | RocketZando0 -
301 redirectmatch
I think I'm starting to loss my mind. I have worked with regex before with very little problems how with my redirects nothing appears to be working. A little guidance is needed! The Low down I have a site with Joomla CMS backend. The site is undergoing and SEO overhaul I was simple hoping to use a 301 redirect o these old pages that are now a causing 404's The addresses /index.php?option=com_content&view=article&id=46&Itemid=53_blank /shop/product.php?id_product=11 I have tried the following redirects but no avail RedirectMatch 301 ^/shop/product.php?id_product=11$ http://www.nomitang.com/index.php/en/vm_getaway_w this does not work at all if I remove the ?.....ending then I can simply redirect the product page but this is not what we need. Why does RedirectMatch not register anything after the "?"? I also tried this RewriteCond %{HTTP_HOST} ?option=com_content&view=article&id=46&Itemid=53_blank [NC]
Technical SEO | | Stefan-Thorpe
RewriteRule ^(.*)$ http://www.nomitang.com/ [R=301,L] But this also didn't work. Please could someone tell me how to redirect these url's and how to deal with the extrension Thanks Stefan0 -
302 Redirects for Wordpress Blog Trackbacks
I'm a newbie, and just got my first crawl diagnostics report. I was looking at the temporary redirects, and virtually all of them are trackback URLs from our blog (we use ourdomain.com/blog and Wordpress). The diagnostics report says they're 302 redirects. Is this problematic and, if so, can you suggest the best way to fix the problem? Thanks in advance for your help!
Technical SEO | | sally580 -
Looking for some help adding a 301 redirect for my Site
Hi there, I am trying to eliminate the 'www' using a 301 redirect script as I have duplicate page titles for both versions (with and without the 'www') I checked the page authority and found the pages without the 'www' to be ranked higher. For this reason I believe it would be wise to go for this option. I have an .htaccess file, all I need is the code and I should be ok 🙂 Thanks!
Technical SEO | | debeenus0 -
302 vs. a href="nofollow"
we came across one thing the we did not asked to programm by our intention. we have a magento shop and on the produktpage we have those "compare" buttons. these link have a session id and the follow a 302 back onto the same page. so i beleive the idea is that google will just not follow 302s and thats it. so my questions is: is this right what we beleive if so why is a 302 better compared to a a href="nofollow" ???
Technical SEO | | kynop0