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
-
URL 301 Re-direct
Hello, If we publish a blog post with a url which accidentally contains a number at the end (blog.companyname.com/subject-title-0), is it best-practice to update the URL (e.g. to blog.companyname.com/subject-title) and put in a 301 re-direct from the old to the new one or should it simply be left as is? I've read that 301's lose link equity and relevance so is it really worth re-directing for the sake of a cleaner url? Thanks for your input! John
Technical SEO | | SEOCT1 -
Is 301 redirect replacing or adding PA on a page ?
Hello Moz community, I am re-structuring information architecture on a website. The homepage targets keyword A
Technical SEO | | Sindicic_Alexis
There is a page /page-on-B/ that targets keyword B
There is also an older page /page-on-kinda-B/ that targets a keyword which is really close to B ( i think they should have been worked on the same page...) I want to re-optimise the homepage on keyword B because i know it is worth the effort. If i re-write the homepage to talk about B and do a 301 redirect of : /page-on-B/
/page-on-kinda-B/ to the homepage is it going to add page authority to the homepage ? is it the right way to proceed ?
Thanks for your support !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 Redirect without specifying base domain?
Hi guys, about 10 minutes ago, I finally found the underlying problem in magento between 301 redirects and canonical tags - part of the reason why it was hard to identify was because the problem is not constant through all pages. Anyway now that I found the problem, I have about 50 301 redirects to implement via .htaccess. Now I know the regular syntax is Redirect 301 /oldpage.html http://www.yoursite.com/newpage.html But I'm wondering if there's a way that the base domain doesn't have to be specified in the second half of this line. Something like: Redirect 301 /oldpage.html /newpage.html I'm sure this can be done, somehow. Thanks!
Technical SEO | | yacpro130 -
What tools produce a complete list of all URLs for 301 redirects?
I am project managing the rebuild of a major corporate website and need to set up 301 redirects from the old pages to the new ones. The problem is that the old site sits on multiple CMS platforms so there is no way I can get a list of pages from the old CMS. Is there a good tool out there that will crawl through all the sites and produce a nice spreadsheet with all the URLs on it? Somebody mentioned Xenu but I have never used it. Any recommendations? Thanks -Adrian
Technical SEO | | Adrian_Kingwell0 -
Limits to 301 in htaccess?
I'm about to launch a redesign of my company's main website, and we've updated most of the URLs to be more user friendly and SEO optimized. I've just finished editing my spreadsheet, and see that I'll need to implement 244 redirects. My question is: Are there performance issues with loading your .htaccess file up with almost 250 301 redirect commands? I've heard a bloated htaccess file can really slow down apache, should I be approaching this a different way, maybe with php?
Technical SEO | | AdoptionHelp0 -
301 redirect .htaccess problem
Can anyone explain to me why this doesn't work? Redirect 301 /category/diamond-pendants/nstart/1/start/(.*) http://www.povada.com/category/pendants/nstart/1/start/$1 Im trying to replace everything after /start/ and insert it into the new url. Thanks in advance.
Technical SEO | | 13375auc30 -
301 redirect
We have just had an outside SEO agency report on our site: One of things brought up were arounf broken links, and how they class them as broken links. Could any body tell me whether this statement holds true please, as I am not aware of this "Our latest intelligence shows that google are downgrading ranking from sites that feature 301 redirects within the internal link structure". Any help would be greatly appreciated Regards
Technical SEO | | Yozzer0