301 Redirect and Webmaster Central
-
I've been working on removing canonical issues. My host is Apache.
Is this the correct code for my htaccess?
RewriteEngine On
RewriteCond %{HTTP_HOST} ^luckygemstones.com$ [NC]
RewriteRule ^(.*)$ http://www.luckygemstones.com/$1 [R=301,L]SECOND!!! I have two websites under Google's Webmaster Central;
http://luckygemstones.com which gets NO 404 soft errors...
AND
http://www.luckygemstones.com which has 247 soft 404 errors...
I think I should DELETE the http://luckygemstones.com site from Webmaster Central--the 301 redirect handles the"www" thing.
Is this correct? I hate to hose things (even worse?)
Help!
Kathleen
-
It seems like Google would want unused/unwanted pages removed--less "junk" on the web--less irrelevance to add to their already huge index...
A long time problem I think...I will sometimes put NOINDEX, NOFOLLOW in pages I wanted removed from the index--then after a few months, delete them.
Thanks for the feedback!
-
Hah, reading my daily dose of news and this came up.
"If we've seen a URL once, we're likely to retry it again and again, especially if we should run across new links to that URL. This isn't something that you really need to worry about, it's absolutely fine and even expected that a website returns 404 for URLs that don't exist. Assuming these are URLs that you don't want to have indexed, then these 404 errors will not negatively affect your site's performance in search. Having 404s is fine." - John Mueller
-
http://www.luckygemstones.com/anypage.htm" />
Yes, add the www. because that is what you want to be indexed.. you want the non-www version to be ignored and replaced with the www. version.
I wonder how people handle sold outs properly. - Keep the page and replace the "add to cart/buy now" button with a "Sold Out" graphic.
That way you get to keep all your pages (hopefully they are unique and get external links) and are able to target more keywords to cross sell your other items. And if you do get more of the item in stock, you can just add the payment buttons again.
-
So I still need the link rel tag on each page--including the 301 redirect?
So say or would the link tag require the www? I think not--but not totally clear!
We're a jewelry website--and things do sell out, so we remove the page (otherwise someone might try to order them) I have it in the sitemap to archive the pages yet still get 404 errors. I've been considering 410--but not sure how to implement...
We have literally thousands of items--so it'd be a bit of work to go over and manually remove sold out items at google every day. And what about yahoo/bing, etc?
I wonder how people handle sold outs properly.
Thx for your help!
Kathleen
-
Correct code for .htaccess.
I wouldn't remove the non-www version from GWT. Instead, set the preferred domain (configuration > settings > preferred domain > Display URLs as www.luckygemstones.com)
In addition, I would add rel canonical tags to the www. version of each page.
Can you list some sample soft 404s? By definition, they are pages that aren't found but return a 200 response code.
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 issues
Hi, I have this site: www.berenjifamilylaw.com. We did a 301 from the old site: www.bestfamilylawattorney.com to the one above. It's been several weeks now and Google has indexed the new site, but still pulls the old one on search terms like: Los Angeles divorce lawyer. I'm curious, does anyone have experience with this? How long does it take for Google to remove the old site and start serving the new one as a search result? Any ideas or tips would be appreciated. Thanks.
Intermediate & Advanced SEO | | mrodriguez14400 -
Shall I use a 301 or 302 redirect when people leave the company?
Hello, At my company, we have instances where client-facing people leave the company and so we need to remove their profile page from the website. As opposed to people receiving a 404 when they search for them, I thought it would be best to divert visitors to a generic landing page to explain that the person they are looking for has left the company with details on how to get in touch. I'm tempted to use a 302 redirect so the person they are searching for stays in the search results longer. But longer-term, will this cause any harm? Should it be eventually be turned into a 301 redirect? Or should I just use a 301 in the first instance. Thanks in advance, Stu
Intermediate & Advanced SEO | | Stuart260 -
Multiple 301 redirects for a HTTPS URL. Good or bad?
I'm working on an ecommerce website that has a few snags and issues with it's coding. They're using https, and when you access the website through domain.com, theres a 301 redirect to http://www.domain.com and then this, in turn, redirected to https://www.domain.com. Would this have a deterimental effect or is that considered the best way to do it. Have the website redirect to http and then all http access is redirected to the https URL? Thanks
Intermediate & Advanced SEO | | jasondexter0 -
Htaccess redirect veriables
Hey, I'm trying to redirect all instances of "/archive_details.php?id=*" to "/public-affairs-job-archive.php". Is the below code correct? Redirect 301 /archive_details.php?id=* /public-affairs-job-archive.php Thanks, Luke.
Intermediate & Advanced SEO | | NoisyLittleMonkey0 -
Redirection not working
http://elmanarah.com/ to http://www.elmanarah.com/ I have mistakenly created 5 databases for one wordpress installation.In order to get rid of them I mistakenly even deleted the right one.Now created the new one but the URL is showing with www Even now if It type in http://elmanarah.com/ it sends me to http://www.elmanarah.com/ I also check in URL D.A and P.A in OSE it shows like I have redirected it fine.Can anyone Check in and guide me either I have done it right and It pass on my previous work effort or it was total loss for me?
Intermediate & Advanced SEO | | csfarnsworth0 -
Should 301 Redirects be used only in cross domains or also internally?
In the following video with Cutts: http://youtu.be/r1lVPrYoBkA he explains a bit more about 301 redirects but he only talks about cross sites. What about redirecting internally from a non-existing product in a store to a new similar existing product?
Intermediate & Advanced SEO | | BeytzNet0 -
301 - do i change old links once 301 is in place?
Hey all, I'm about to setup a 301 on a website that has pretty good SEO rankings and I have the ability to change all the old inbound links that point to the old site, to the new site - should I leave them pointing to the old site that has the 301 on it or change all the old inbound links to the new domain name? Which has better SEO value? Thanks for helping, Anthony
Intermediate & Advanced SEO | | Grenadi0 -
301 Redirect - How Long Until Recovery?
How long after one moves a page and sets up the 301s should the site take to regain its previous rankings? Context: i've ported a site to a new framework. Along the way, several high ranked pages needed to have new URLs setup, as well as the site moved from www.domain.com to simply domain.com. About 1 week after the change, the site's traffic went down 70% and has been there for about another 2 weeks. I suppose it could be something about the new framework that is causing problems though according to SEOMoz tools, the new framework is checking out pretty well. I assume the problem is reconciling all those old www inbound links with the new non-www location. It is all 301'd however ... so it should be working, but is not. So my questions are: 1. How long should it take Google to reconcile these changes and put us back to original SERP positions 2. is there something inherently problematic with switching from www to non-www?
Intermediate & Advanced SEO | | NealCabage0