Thread: Canonical Issue

    #1
  1. Contributing User
    SEO Chat Explorer (0 - 99 posts)

    Join Date
    Jun 2017
    Location
    Ghaziabad, New Delhi
    Posts
    63
    Rep Power
    62

    Canonical Issue


    Hi,
    This is the website link https://www.webdesigninghouse.com and it shows the canonical issue and that cause to duplicate content.
    This issue comes up when I buy the SSL certificate and make redirection to redirect the website to https://

    .htaccess file code for redirection is

    RewriteEngine On
    RewriteCond %{HTTPS} off
    RewriteRule (.*) https://www.webdesigninghouse.com%{REQUEST_URI}
    Is this code right or there is something wrong in the code.

    The desired domain I want is https://www.webdesigninghouse.com
    Last edited by Hikin Mike; Sep 23rd, 2017 at 01:24 AM.
  2. #2
  3. SeoRaptor
    SEO Chat Adventurer (500 - 999 posts)

    Join Date
    Mar 2016
    Location
    France, Saint-Etienne
    Posts
    994
    Rep Power
    1703
    MMM a webdesign company website offering web developement services.... What can I say...

    First of all you have no canonical tag on your pages... so it can not be a canonical issue, you just have an issue with your redirections...

    From the code you proposed you seem to be using apache and not nginx so you need to put the following code into your .htaccess file in replacement of the one you have.


    Code:
    RewriteCond %{HTTPS} off
    # First rewrite to HTTPS:
    # Don't put www. here. If it is already there it will be included, if not
    # the subsequent rule will catch it.
    RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
    # Now, rewrite any request to the wrong domain to use www.
    # [NC] is a case-insensitive match
    RewriteCond %{HTTP_HOST} !^www\. [NC]
    RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
    And you should be fine

    This will rewrite everything to https://www. version of your site.

    Comments on this post

    • NaseemKaloo agrees
    Owner of Bennetonable - "My opinions are my own - Feel free to disagree & think above the fold."
    Need a quick analysis > Free SEO grader Beta
  4. #3
  5. Contributing User
    SEO Chat Explorer (0 - 99 posts)

    Join Date
    Jun 2017
    Location
    Ghaziabad, New Delhi
    Posts
    63
    Rep Power
    62
    Thank you so much for the code sir, now the issue is fixed.
    First I use the code wrong you gave but I tried it two times and it works. Thank you once again.
  6. #4
  7. SeoRaptor
    SEO Chat Adventurer (500 - 999 posts)

    Join Date
    Mar 2016
    Location
    France, Saint-Etienne
    Posts
    994
    Rep Power
    1703
    You are welcome,

    Have a nice day.

Similar Threads

  1. canonical issue
    By raiahsan in forum Google Optimization
    Replies: 11
    Last Post: Dec 21st, 2012, 04:48 AM
  2. Canonical issue?
    By gazc1253 in forum Google Optimization
    Replies: 4
    Last Post: Jun 24th, 2011, 04:03 PM
  3. Is this a canonical issue?
    By tony_stark in forum Google Optimization
    Replies: 13
    Last Post: Sep 25th, 2009, 10:08 AM
  4. Canonical Issue
    By DarrenJ in forum Google Optimization
    Replies: 6
    Last Post: Sep 7th, 2009, 11:14 AM

IMN logo majestic logo threadwatch logo seochat tools logo