.htaccess redirect chains
-
At item 4 in the post at http://moz.com/blog/htaccess-file-snippets-for-seos the author recommends combining .htaccess redirects to avoid chaining redirects.
I'd be obliged if someone could expand on:
1. What he means by chained redirects
2. How to combine the redirects per his recommendation
Cheers.
-
Terrific, thanks!
And combining the redirects quoted in that post . . . how should that be done correctly?
-
sweet and simply.... good example!
-
Chain redirects just mean that a page redirects once, and then redirects again to something else.
An example might be a site that was originally in html, then php, and now has no file extension.
If the redirects were left in order each time a site was upgraded, you might go from page.html to page.php to page.
The easiest way to clean them up is to make sure all redirects go to the current version of the page.
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
-
301 redirects
I am in the process of truncating many of the URLs using a plugin installed on Wordpress. The question is does google penalize or have issues with too many 301 redirects on your site. I have many many products I want to do this with. I thought I read somewhere that 301 redirects should be held to a minimum. Would appreciate any assistance
On-Page Optimization | | xinar0 -
Site has 302 redirects for HTTP to HTTPS when it should be 301
Hey all, In the latest Moz crawl, certain pages on our website have shown as having 302 redirects for the http to https, but not all. There should be a 301 solution, but wanted to see if anyone had any advice or guidance. Thanks!
On-Page Optimization | | Julzseo1 -
301 Redirect to external site
Hi guys, We have a client who is getting their website redesigned through us. They are discontinuing couple of their services which will not get featured in the new site. They are fairly well ranked for these services and my client wishes to 301 redirect these pages to an external site owned by his friend so that they benefit out of the ranking. The question is: Will my client's website's general ranking get affected due to 301 redirecting to an external site? The external site is not spammy or red-flagged by Google (at the moment, at least). Thanks in advance!
On-Page Optimization | | RameshNair
Ramesh Nair0 -
Www to non www redirect
HI there, I was worried that my folder was not being crawled as when I searched for site:www.thekeepsakeco.co.uk/marketplace nothing came up but today I tried site:thekeepsakeco.co.uk/marketplace it does. So it is forwarding the www to the non www. When I do a search on links or analyse the domain it says there is a forwarder in place. My site used to dominate in my niche and now is not doing very well since I moved to the new site. I know I did not handle the move well but wonder what I can do about it and wonder if this redirect is causing issues. So any link building it probably going to www. rather than non www so does that mean they are not counting. What would you do? move everything back to www and could I do a 301 redirect for the whole folder? Any help greatly received! Kindest regards Victoria Thanks Victoria
On-Page Optimization | | vcasebourne0 -
301 Redirect to product page or category?
We manage an ecommerce website that sells health products. A few products have now been discontinued. I’m just wondering what would be the best practice in this case. Should we 301 redirect to a similar product or to a similar category page? ANY HELP IS GREATLY APPRECIATED!
On-Page Optimization | | odegi0 -
301 redirect www.brandname.com to www.brandname-keyword.com
It seems I've been reading about 301 for hours now, but I still didn't find an answer to my question, so I'm hoping someone can help me out here. I'm starting a new webshop which is relaunching a semi known brand within its specific niche, say kids toys. Now my question is - since the brand name is relatively known and it is only 5 letters short, the website will be www.xxxxx.com. However the brand name itself doesn't say anything about the products we sell, so I was thinking to buy www.xxxxx-toys.com and 301 redirect www.xxxxx.com to this new site, but still use the shorter version in all marketing material since it's a lot easier to type and remember. Apparently Google doesn't give extra juice to sites with keywords in the domain name anymore (?) but it would still say something about site to new customers unaware of the brand name. Any advice? 🙂
On-Page Optimization | | JaneVO0 -
Correct use of Canonical link vs 301 redirect
Hi All, Seeking yet more advice. SEOMOZ tools have told me I have duplicate content on one of my sites and I am keen to clean this up. I am not to familiar with the following so thought I would ask. The duplicate content is shown on : www.mysite.com www.mysite.com/index.html Obviously I only see index.html when I check the code so what is the best method of resolving the duplicate content, Canonical or 301? Can you give me an example 🙂 Thanks all
On-Page Optimization | | wedmonds0 -
What's the Best Way to Hide Redirects from Search Engines?
Hey everybody, I like to use php redirects for affiliate links so they look better. I keep them all in the same directory. I read recently that these may hurt SEO. A couple quick questions: Is this the best way to redirect affiliate links? Should I simply block the directory in robots.txt? Any other suggestions from you SEO guyses and galz? Thanks! Jared
On-Page Optimization | | JaredB0