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
-
To Redirect or Not
I have a strange situation and looking for advice on how well a permanent redirect of url will work. I have an eCommerce site called twpstain.com. This site sells TWP Deck stain and the URL/Content is fully owned by me. We do not however own the TWP brand and have always operated with permission from the manufacturer as an Authorized dealer. Circumstance have come up where they now want to be in control of all URLS that have the name "TWP" in them. Not sure if they legally can do this but they can cut me off with product if I do not comply. My options are: 1. A permanent redirect of entire site to new URL that does not have the word "TWP" in the url. 2. Give them the URL but they are willing to have me use the URL as I have in the past. A contract for this would be drawn up to cover me for years to come and possibly offer compensation if they decide not to renew. My concerns are numerous but the question for the Moz community is to how well the 301 redirect will work and will I lose my rankings? I currently dominate the rankings for my site and I very concerned that there will be major loss of sales and traffic. Any help or opinions on this would be much appreciated.
Intermediate & Advanced SEO | | dogtopiamichigan0 -
HTTPS Login on HTTP Site | 301 or 302 Redirect?
I've searched the forum on this and online and can't seem to find a definitive answer. Some e-commerce sites that are http use a 302 redirect to the https login while other sites use a 301 redirect. I know 302 is generally not recommended but in this case it may make sense. Can anyone advise on the correct practice?
Intermediate & Advanced SEO | | CallMeNicholi0 -
301 Redirect from now defunct website?
Hi guys Quick question about 301 redirection between domains. I currently manage a website, lets call it website A. Website A sells a particular product range, however the decision has been made by the powers that be to pull the plug on the business and sell the products previously sold via Website A via another website within the parent companies control.....lets call it Website B. I need to make it clear to customers of Website A that the company no longer operates but want to pass the SEO equity that has been built up over time to the relevant pages on Website B. My plan was to 1. 301 Redirect all key landing pages on Website A to the most relevant pages on Website B 2. Initially keep the website A homepage live but change the message to say "Website A no longer operates, but Website B can help etc. etc." Remove all sub links from navigation. 3. Monitor referral and direct traffic levels and consider 301 redirecting website A homepage to Website B homepage in the long term. My questions: Does this sound like the best approach? If not, what alternatives are there? Will Website A look like a link farm for Website B? I dont want this obviously!
Intermediate & Advanced SEO | | DHS_SH0 -
Does this require site-wide 301 redirects?
I have an old site that we are re-building, and also moving form Yahoo Stores to Big Commerce. yahoo uses site.com/page.html and BC uses site.com/page. Is there any SEO benefit to keeping the old .html format? some of the pages on the old site have no links to them from external sites. Do they even need re-directs, or should I just let Google find the new page equivalents when they crawl the new version of the site? While some of the old pages (primarily product pages) have OK urls, others have obscure product numbers as the URL. Obviously the latter need re-directing to a more relevant page, but what about situations like this:
Intermediate & Advanced SEO | | Grabapple
_/accessory-product.html _ > product-accessory
In this example, the existing URL is fine, except for the .html extention. If I just used the old URL, would having a mix of /sample.html and /sample pages hurt me? Thanks in advance for your help and input! Dave0 -
301 redirections done too late - What do you suggest?
Hi, When pushing our new site live, most of the 301 redirections got done too late for several reasons. Understandably, our site rankings in google have taken a hit now. So far we have just tried to perfectly optimize the pages that used to rank well (They weren't even optimized before and were still ranking) , to get our positions back. But does anyone have an idea about what else we could do? Is there a recommended "action plan" when someone is late with their 301 redirections?
Intermediate & Advanced SEO | | JohanMattisson0 -
How to set up 301 redirect for URL with question mark
I have encountered some issue with 301 redirect and htaccess file. I need to redirect the following url: http://www.domain.com/?specifications=colours/page/3 to: http://www.domain.com/colours The 301 redirect command I wrote in htaccess file is as follow: Redirect 301 /?specifications=colours/page/3 http://www.domain.com/colours And it doesn't work at the moment. What is the correct way to set up 301 redirect here? Your help will be sincerely appreciated!
Intermediate & Advanced SEO | | robotseo0 -
301 or 302 Redirects to Mobile Site
When it's detected that a mobile device is accessing the site it has the ability to redirect from www.example.com to m.example.com. Does it make more sense to employ a 301 or 302 redirect here? Google says a 301 but does not explain why (although usually I stick to "when in doubt, 301") . It seems like a 302 would prevent passing link juice to the mobile site and having mobile-optimized results also showing up in Google's index. What is the preference here?
Intermediate & Advanced SEO | | SEOTGT0 -
301 redirect for duplicate content
Hey, I have just started working on a site which is a video based city guide, with promotional videos for restaurants, bars, activities,etc. The first thing that I have noticed is that every video on the site has two possible urls:- http://www.domain.com/venue.php?url=rosemarino
Intermediate & Advanced SEO | | AdeLewis
http://www.domain.com/venue/rosemarino I know that I can write a .htaccess line to redirect one to the other:- redirect 301 /venue.php?url=rosemarino http://www.domain.com/venue/rosemarino but this would involve creating a .htaccess line for every video on the site and new videos that get added may get missed. Does anyone know a way of creating a rule to rewrite these urls? Any help would be most gratefully received. Thanks. Ade.0