Question concerning a 302 Redirect
-
Hi!
I've already done some research on redirects, but I still have a question concerning a 302 redirect implemented at the homepage of a website.
The Website www.domainA.com has a 302 redirect to www.domainA.com/content/.... Also all subsequent pages have the /content/ directory in their URLs: e.g domainA.com/content/products
-
First thing I was wondering about, was the use of a redirect to a new site using an additional directory /content/... Why would anyone do this? Would it be enough to replace the 302 with a 301 redirect, or would you recommend to change the entire structure and eliminate this /content/ directory? The most logical structure would be www.domainA.com/products/.., and not www.domainA.com/content/products, right?
-
Second thing: Given that 302 means temporary redirect, what are the actual implications when redirecting from domainA.com to domainA.com/content? I've heard that 302 redirects don't pass linkjuice and are detrimental for the site's rankings... What are the actual implications concerning the example above (302 redirect from domainA.com to domainA.com/content ?
Would be great to get some advice about the first problem and maybe some insights about the second one concerning 302s in general.
Thanks in advance!
Cheers,
Chris
-
-
That's fine, I think in that case, they didn't really know why they did it, so it will certainly help them to know, that there's better options around.
Thanks again for your insights and time, you helped me a lot with that one!
Cheers,
Chris
-
I am in agreement with you Christoph.
I do not see any value in adding a "content" directory. From a user stand point, it is not helpful.
The only reason to have a /content directory is if there is a need for it on the server. Sometimes there is shared hosting involved or other considerations that I am not aware of, so I prefer not to criticize others for their choices without knowing all the facts that their decision was based upon.
-
Hi Ryan,
thanks for your reply and your view on this. I think I've already read the article by Matt Cutts, but as I've been working in SEA so far, the technical aspects of SEO are still the area where I have to catch up the most. But you've definitely helped me with that one
Coming back once again to the actual website, that I mentioned. Concerning the /content/ directory, you said that it would depend on the perspective. What I meant with "The most logical structure would be www.domainA.com/products/.., and not www.domainA.com/content/products, right?" was that the /content/ directory may be detrimental for the ranking of sub-pages, as subsequent pages, which are lower in the hierarchy like domainA.com/content/products/shoes would be one level deeper than if it was domainA/products/shoes. In the former case, the sub-page "Shoes" would be one click further away than in the latter. So for the sub-page "shoes" it would be "better" to be located one level up, right?
In the specific case, the homepage is permanently redirected from domainA.com to domainA.com/content/, but they did it with a 302 redirect.
So in this case it would be better to use a 301 or change the URL structure, so that no redirect is necesary (e.g: domainA.com/products/shoes). Would that be suitable options according to you?
-
There are many great pages written on this topic. An older but relevant article from Matt Cutts: http://www.mattcutts.com/blog/seo-advice-discussing-302-redirects/
In short, a 302 would only ever be used if the move was temporary. You are correct in that they do not pass a link's value. I would only use a 302 to resolve a temporary problem.
A 301 passes 90%+ of the link's value, but there is some loss. That is why you would prefer not to use it, especially if the move was temporary. Using multiple 301s in a chain can be especially bad for this reason.
First thing I was wondering about, was the use of a redirect to a new site using an additional directory /content/... Why would anyone do this?
There are some very good reasons. It sounds like they originally had the site located in the root directory of their web server, and did a re-organization of their file structure. Their site is now contained in the content directory. Perhaps they set up a new CMS which required this change.
The most logical structure would be www.domainA.com/products/.., and not www.domainA.com/content/products, right?
It depends on your perspective. For example, if you have a WordPress blog site or other CMS paired with forum software, then the wordpress site is often set up at the root domain. The forum software would be in a directory such as /forums or perhaps /content. If it was my site then the products would be located off the root directory as you suggest, but others could certainly offer it within the /content directory.
what are the actual implications when redirecting from domainA.com to domainA.com/content?
It depends. A well established site will often have a lot of link value for their home page. That value would be lost with the 302. There is nothing specifically detrimental per se. It is more of missed opportunities.
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
-
Redirection chain and Javascript Redirect
Hi, A redirection chain is usually defined as a page redirecting to another page which itself is another redirection. URL1 ---(301/302)---> URL2 ---(301/302)---> URL3 But what about Javascript redirect? They seem to be a different beast: URL1 ---(301/302)---> URL2 ---(200 then Javascript redirect)---> URL3 From what I know if the javascript redirect is instant Google counts it as a 301 permanent redirection, but I'm still not sure about if this counts as a redirection chain. Most of the tools (such as moz) only see the first redirection. So is that scenario a redirection chain or no?
Technical SEO | | LouisPortier0 -
Redirect indexed lightbox URLs?
Hello all, So I'm doing some technical SEO work on a client website and wanted to crowdsource some thoughts and suggestions. Without giving away the website name, here is the situation: The website has a dedicated /resources/ page. The bulk of the Resources are industry definitions, all encapsulated in colored boxes. When you click on the box, the definition opens in a lightbox with its own unique URL (Ex: /resources/?resource=augmented-reality). The information for these colored lightbox definitions is pulled from a normal resources page (Ex: /resources/augmented-reality/). Both of these URLs are indexed, leading to a lot of duplicate indexed content. How would you approach this? **Things to Consider: ** -Website is built on Wordpress with a custom theme.
Technical SEO | | Alces
-I have no idea how to even find settings for the lightbox (will be asking the client today).
-Right now my thought is to simply disallow the lightbox URL in robots.txt and hope Google will stop crawling and eventually drop from the index.
-I've considered adding the main resource page canonical to the lightbox URL, but it appears to be dynamically created and thus there is no place to access (outside of the FTP, I imagine?). I'm most rusty with stuff like this, so figured I'd appeal to the masses for some assistance. Thanks! -Brad0 -
302 Redirect Question
After running a site crawl. I found two 302 redirects. The two redirects go from: site.com to www.site.com & site.com/products to www.site.com/products How do I fix the 302 redirect and change it to a 301 redirect? I have no clue where to start. Thanks.
Technical SEO | | Ryan_1320 -
Does duplicate content not concern Rand?
Hello all, I'm a new SEOer and I'm currently trying to navigate the layman's minefield that is trying to understand duplicate content issues in as best I can. I'm working on a website at the moment where there's a duplicate content issue with blog archives/categories/tags etc. I was planning to beat this by implementing a noindex meta tag on those pages where there are duplicate content issues. Before I go ahead with this I thought: "Hey, these Moz guys seem to know what they're doing! What would Rand do?" Blogs on the website in question appear in full and in date order relating to the tag/category/what-have-you creating the duplicate content problem. Much like Rand's blog here at Moz - I thought I'd have a look at the source code to see how it was dealt with. My amateur eyes could find nothing to help answer this question: E.g. Both the following URLs appear in SERPs (using site:moz,com and very targeted keywords, but they're there): https://moz.com/rand/does-making-a-website-mobile-friendly-have-a-universally-positive-impact-on-mobile-traffic/ https://moz.com/rand/category/moz/ Both pages have a rel="canonical" pointing to themselves. I can understand why he wouldn't be fussed about the category not ranking, but the blog? Is this not having a negative effect? I'm just a little confused as there are so many conflicting "best practice" tips out there - and now after digging around in the source code on Rand's blog I'm more confused than ever! Any help much appreciated, Thanks
Technical SEO | | sbridle1 -
Help with 301 redirect code
Hi, I can't work out how to make this one work and would apreciate if someone could help.
Technical SEO | | Paul_MC
i have a series of folders from a old site that are in the structure:
/c/123456/bags.html (the "123456" changes and is any series of 6 digit numbers), and the "bags.html" changes depending on the product.
I need that to be 301 redirected to the following format:
/default/bags/bags.html0 -
301 redirect or 302
A client of mine has an international company named www.taxglobalizers.com if you come from Holland they 302 redirect you to the www.taxglobalizers.com/en version of the site and if you come from Holland they redirect with a 302 to www.taxglobalizers.com/nl version. I think it is best to change this in a 301 redirect. Am i correct in this? Kind Regards, Ruud
Technical SEO | | RuudHeijnen0 -
301 redirect
What is a proper way to redirect any url containing a give word (anywhere in the url) to another sepcified url? Is it like this? RedirectMatch 301 ^thisword$ http://domain.com/newlocation
Technical SEO | | sesertin1 -
Query String Redirection
In PHP, I'm wanting to store a session variable based upon a link that's clicked. I'm wanting to avoid query strings on pages that have content. My current workaround is to have a link with query strings to a php file that does nothing but snags the variables via $_GET, stores them into $_SESSION, and then redirects. For example, consider this script, that I have set up to force to a mobile version. Accessed via something like a href="forcemobile.php?url=(the current filename)" session_start(); //Location of vertstudios file on your localhost. Include trailing slash $loc = "http://localhost/web/vertstudios/"; //If GET variable not defined, this page is being accessed directly. //In that case, force to 404 page. Same case for if mobile session variable //not defined. if(!(isset($_GET["url"]) && isset($_SESSION["mobile"]))){ header("Location: http://www.vertstudios.com/404.php"); exit(); } //Snag the URL $url = $_GET["url"]; //Set the mobile session to true, and redirect to specified URL $_SESSION["mobile"] = true;header("Location: " . $loc . $url); ?> Will this circumvent the issue caused by using query strings?
Technical SEO | | JoeQuery0