Submit Your Article Forum Rules

Page 5 of 12 FirstFirst ... 34567 ... LastLast
Results 41 to 50 of 114

Thread: Canonicalization Prevention Guide

  1. #41
    WebProWorld MVP edhan's Avatar
    Join Date
    Aug 2003
    Posts
    895

    Wink Re: Canonicalization Prevention Guide

    Quote Originally Posted by edhan View Post
    Hi wige

    After I add:

    RewriteRule ^/index\.(php|html)$ http://www.yourdomain.com/ [R=301, L]
    RewriteRule ^(.*)/index\.(php|html)$ http://www.yourdomain.com/$1/ [R=301, L]

    It gave me Error 500.

    I have no problem when I use this:

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

    Any idea?
    Finally, I tried using Webnauts

    RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /.*index\.html?\ HTTP/
    RewriteRule ^(.*)index\.html?$ http://www.yoursite.com/$1 [R=301,L]

    And it works fine! So now I have no problem of getting it displays as:

    www.mydomain.com

    for index.php or index.html

    Thanks Webnauts!
    Find Out More About Hidden Content | Hidden Content | Exploring, Hidden Content With Friends, Colleagues And Family Members In Relationships & Careers... Do you want a better lifestyle? Check it out today!

  2. #42
    Junior Member google consultant's Avatar
    Join Date
    Jun 2008
    Posts
    24

    Re: Canonicalization Prevention Guide

    WIGE,
    great post. Very useful for a client I have. I have gone into the site and used full domain to homepage rather than .index.html. But adding the code into the htaccess file is a great backup. Keep up the good work.
    Please Read The Hidden Content .

  3. #43
    Senior Member ericajoieake's Avatar
    Join Date
    Feb 2008
    Posts
    108

    Re: Canonicalization Prevention Guide

    The domain with www and without www are two different domain so there's nothing for you to worry about, but I suggest to own both of the domain and redirect to your chosen main url, to be able to gather all the traffics coming from both domains.

  4. #44
    WebProWorld MVP edhan's Avatar
    Join Date
    Aug 2003
    Posts
    895

    Re: Canonicalization Prevention Guide

    Quote Originally Posted by ericajoieake View Post
    The domain with www and without www are two different domain so there's nothing for you to worry about, but I suggest to own both of the domain and redirect to your chosen main url, to be able to gather all the traffics coming from both domains.
    But both with www and without www are the same content. I have read somewhere that it might be taken as duplicate content so that is why I am using canonicalization.
    Find Out More About Hidden Content | Hidden Content | Exploring, Hidden Content With Friends, Colleagues And Family Members In Relationships & Careers... Do you want a better lifestyle? Check it out today!

  5. #45
    WebProWorld MVP Webnauts's Avatar
    Join Date
    Aug 2003
    Location
    European Community
    Posts
    8,934

    Re: Canonicalization Prevention Guide

    Quote Originally Posted by ericajoieake View Post
    The domain with www and without www are two different domain so there's nothing for you to worry about, but I suggest to own both of the domain and redirect to your chosen main url, to be able to gather all the traffics coming from both domains.
    How can someone own a domain with www and not without www, and the way around?
    Hidden Content Forensic SEO & Social Semantic Web Consultant | My personal blog Hidden Content

  6. #46
    Rest in Peace 1946 - 2013 deepsand's Avatar
    Join Date
    May 2004
    Location
    State College, PA
    Posts
    16,376

    Re: Canonicalization Prevention Guide

    Quote Originally Posted by ericajoieake View Post
    The domain with www and without www are two different domain so there's nothing for you to worry about, but I suggest to own both of the domain and redirect to your chosen main url, to be able to gather all the traffics coming from both domains.
    The prefix "www" is not part of the Domain Name, but rather an identifier which serves to denote which Internet system or service, in this case "World Wide Web," is being used to communicate with whatever resides at that domain.

    Other commonly used services include File Transfer Protocol (ftp) & Internet Relay Chat (irc).

    A Domain Name, on the other hand, serves as an identifier of a specific resource that exists within the Internet.

  7. #47

    Re: Canonicalization Prevention Guide

    Wige,
    Thank you for your help. Excellent post. We come back to it often to check for solutions.

  8. #48
    Senior Member
    Join Date
    Oct 2005
    Posts
    195

    Re: Canonicalization Prevention Guide

    How can I tell if I have Canonicalization issues at pilotjourney.com

  9. #49
    WebProWorld MVP Dubbya's Avatar
    Join Date
    Nov 2006
    Location
    Steinbach, Manitoba
    Posts
    1,310

    Re: Canonicalization Prevention Guide

    Quote Originally Posted by nashville View Post
    How can I tell if I have Canonicalization issues at pilotjourney.com
    You do.

    You want pilotjourney.com to resolve to www.pilotjourney.com. Presently, it doesn't.

    Essentially, you want the server to check all queries to ensure that they include the "www." portion of the URL. If they don't, you want the server to rewrite the URL to include the "www.".

    Ya follow?

    Considering that you're running a .php site, you should be able to find the help you need to set up the rewrite script properly.

    Good Luck.

  10. #50
    WebProWorld MVP kgun's Avatar
    Join Date
    May 2005
    Location
    Norway
    Posts
    7,721

    Re: Canonicalization Prevention Guide

    I searched this page for

    preferred domain name (No hits)

    and

    Matt Cutts (Found Johns post with the link I had in mind)

    This post is in the SEO sub forum.

    What about Google's:

    preferred domain name?

    KW search:

    preferred domain name site:google.com
    Hidden Content :: Hidden Content
    Hidden Content
    Conversations creates communities and conversions create profit.

Similar Threads

  1. URL Canonicalization
    By adisonclay in forum Search Engine Optimization Forum
    Replies: 5
    Last Post: 04-27-2010, 06:13 PM
  2. Canonicalization
    By gbb011 in forum Google Discussion Forum
    Replies: 10
    Last Post: 12-06-2007, 08:49 AM
  3. Click fraud prevention?
    By A. Smith in forum Marketing Strategies Discussion Forum
    Replies: 0
    Last Post: 07-26-2006, 06:30 PM
  4. Spam Prevention Tip
    By colr in forum Web Programming Discussion Forum
    Replies: 19
    Last Post: 08-25-2004, 10:14 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •