Another deduplication question.
-
Where an existing website has duplicate content issues - specifically the www. and non-www. type; what is the most effective way to inform the searchers and spiders that there is only one page?
I have a site where the ecommerce software (Shopfitter 4) allows a fair bit of meta data to be inserted into each product page but I am uncertain, after a couple of attempts to deduplicate some pages, which is the most effective way to ensure that the www related duplication is eliminated sitewide - there is such a solution.
I have to own up to having looked at
,htaccess
301 redirects
webmaster tools
and become increasingly bamboozled by the conflicting advice as to which is the most effective way or combination to get rid of this problem. too olod to learn new tricks I reckon
Your help and clarification would be appreciated as this may help head off more fruitless work.
-
no. the rewrite rule will apply to all URLs
-
Quick tip:
Usually you can just contact your Hosting company and ask them to do the 301 redirect for you if you feel uneasy tampering with code on the server.
/ G
-
BTW, my answer is for a Apache server.... This means don't use it if its Microsoft...
-
Hi again!
Here we go:
Just input following to .htaccess file:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^example.com
RewriteRule (.*) http://www.example.com/$1 [R=301,L](replace example withyour site )
This should do the trick for the whole site.
/ Gustav
-
Blimey gustav - that was quick. In the htaccess do you need to specify each separtae page url or is there a way of setting it site wide?
Many thanks for taking the time to answer.
Ray
-
Hi there!
Use An 301 redirect you can do this in hte .htaccess file.
Submit xml sitemap to Google webmaster tools with the correct adress(with www)
You will soon be rid of the duplicated pages if you do this.
Best
/ Gustav
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
-
Robots.txt question
I notice something weird in Google robots. txt tester I have this line Disallow: display= in my robots.text but whatever URL I give to test it says blocked and shows this line in robots.text for example this line is to block pages like http://www.abc.com/lamps/floorlamps?display=table but if I test http://www.abc.com/lamps/floorlamps or any page it shows as blocked due to Disallow: display= am I doing something wrong or Google is just acting strange? I don't think pages with no display= are blocked in real.
Intermediate & Advanced SEO | | rbai0 -
Panda Recovery Question
Dear Friends, One of my customers was hit by the Panda, we were working on improve the tiny content on several pages and the remaining pages were: 1 NOINDEX/FOLLOW 2. Removed from sitemap.xml 3. Un-linked from the site (no one page on the site link to the pour content) As conclusion we can't see any improvement, my question is should I remove the pour content pages (404)? What is your recommendation? Thank you for your time Claudio
Intermediate & Advanced SEO | | SharewarePros0 -
Canonical url question
i just search seomoz tooll it say duplicate content for www.mysite.com and www.mysite.com/index.php should i use canonical url for this ? is yes then is this right ?
Intermediate & Advanced SEO | | constructionhelpline0 -
"Too many links" - PageRank question
This question seems to come up a lot. 70 flat page site. For ease of navigation, I want to link every page to one-another. Pure CSS Dropdown menu with categories - each expanding to each of the subpage. Made, implemented, remade smartphone friendly. Hurray. I thought this was an SEO principle - ensuring good site navigation and good internal linking. Not forcing your users to hit "back". Not forcing your users to jump through hoops. But unless I've misread http://www.seomoz.org/blog/how-many-links-is-too-many then this is something that's indirectly penalised by Google because a site with 70 links from its homepage only lets each sub-page inherit 1/80th of its PageRank. Good site navigation vs your subpages are invisible on Google.
Intermediate & Advanced SEO | | JamesFx0 -
Adding another domain to my VPS, would it effect SEO?
I set up my business site on a VPS and its working great. The site is doing well ranking for my keywords. I have another domain name that I was going to host on the VPS also. The site will be in a completely new business and there will be no overlapping keywords at all. A separate business altogether. Can someone tell me if adding another site to the VPS I have cause any SEO issues as the last thing I want to do is negatively effect my main business site Thanks in advance
Intermediate & Advanced SEO | | JohnPeters0 -
Web site Migration from one server to another does cause any impact in SEO rankings?
Dear Seomoz members, We are going to migrate our website to different server location(new data center). does this impact on our SEO rankings? If so what and all checklist i have to do....to retain my SEO rankings. Regards, kathiravan subbiah Caratlane.com
Intermediate & Advanced SEO | | kathiravan0 -
Question about "launching to G" a new site with 500000 pages
Hey experts, how you doing? Hope everything is ok! I'm about to launch a new website, the code is almost done. Totally fresh new domain. The site will have like 500000 pages, fully internal optimized of course. I got my taticts to make G "travel" over my site to get things indexed. The problem is: to release it in "giant mode" or release it "thin" and increase the pages over the time? What do you recomend? Release the big G at once and let them find the 500k pages (do they think this can be a SPAM or something like that)? Or release like 1k/2k per day? Anybody know any good aproach to improve my chances of success here? Any word will be apreciated. Thanks!
Intermediate & Advanced SEO | | azaiats20 -
Architecture questions.
I have two architecture related questions. Fewer folders is better. For example, www.site.com/product should rank better than www.site.com/foldera/folderb/product, all else constant. However, to what extreme does it make sense to remove folders? With a small site of 100 or so pages, why not put all files in the main directory? You'd have to manually build the navigation versus tying navigation to folder structure, but would the benefit justify the additional effort on a small site? I see a lot of sites with expansive footer menus on the home page and sometimes on every page. I can see how that would help indexing and user experience by making every page a click or two apart. However, what does that do to the flow of link juice? Does Google degrade the value of internal footer links like they do external footer links? If Google does degrade internal footer links, then having a bunch of footer links would waste link juice by sending a large portion of juice through degraded links, wouldn't it? Thank you in advance, -Derek
Intermediate & Advanced SEO | | dvansant0