Solved

HTML canonical / 301 redirect confusion

Posted on 2014-09-17
4
148 Views
Last Modified: 2014-09-24
I have a website www.acesestimating.com.
I want acesestimating.com to forward to www.acesestimating.com
To address this I added the following to my .htaccess file:

RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]

It appears to work... typing either address leads to www...

I'm concerned about duplicate content now... It appears that:

acesestimating.com/Free-Trial
www.acesestimating.com/Free-Trial
www.acesestimating.com/Free-Trial.php

can be interpreted as duplicate pages where there is only one physical page.  In the header section of Free-Trial.php I added:

<link rel="canonical" href="http://www.acesestimating.com/Free-Trial" />

Yet when testing using various sites they'll suggest that the canonical tag doesn't exist or isn't correct...

Please help.
0
Comment
Question by:classnet
  • 2
  • 2
4 Comments
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 40328590
Actually you don't need the canonical.  The 301 on the re-direct tells the search engines that you are doing a permanent re-direct.  They no it is not duplicate content, and over time they will drop the pages without the www from search results and only return the www version.  The 301 is the method recommended by Google and will never result in the pages looking like duplicate content as long as you do not put both in a sitemap.

Cd&
0
 

Author Comment

by:classnet
ID: 40328964
COBOLdinosaur... so you think that, as long as the sitemap doesn't list any pages twice that I shouldn't be negatively impacted via SEO?
0
 
LVL 53

Accepted Solution

by:
COBOLdinosaur earned 500 total points
ID: 40331012
Right.  As long as the 301 re-direct works there is no problem.  When the pages are crawled the crawler gets a 301 response and then gets the page where they have been re-directed. The crawler then saves the new address in its data and when it is process on the indexing server the index gets updated.  Over time the old links get dropped from the index; replaced by the updated information, but if a crawler runs across an old version of the link on another site, the re-direct still gets it to the newest version.  The crawler never sees the old page because it has been re-directed, so there is no duplicate page.

Cd&
0
 

Author Closing Comment

by:classnet
ID: 40342296
Thank you for the clarification
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
SVG Star 4 34
Change month dropdown 5 34
simplest php form 3 59
PHP Undefined Index in HTML Form? 2 31
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now