https://www to https:// Problem

2 replies
  • SEO
  • |
I have a website that seems to go to https://whatevercoolsite.com fine when I type it. But, SEM Rush keeps showing https://whatevercoolsite.com AND https://www.whatevercoolsite.com in its reporting as getting traffic to both. Here's the part of my htaccess that works with that part. Do you see anything missing or incorrect?

# Redirect all requests to https
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://whatevercoolsite.com/$1 [R=301,L]
</IfModule>
# End redirect all requests to https

# Begin redirect from www. to normal domain
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.whatevercoolsite\.com$
RewriteRule ^(.*)$ https://whatevercoolsite.com/$1 [R=301,L]
</IfModule>
# End redirect from www. to normal domain
#https or or #https or or www #problem
Avatar of Unregistered
  • Profile picture of the author MikeFriedman
    Originally Posted by lerxtjr View Post

    I have a website that seems to go to https://whatevercoolsite.com fine when I type it. But, SEM Rush keeps showing https://whatevercoolsite.com AND https://www.whatevercoolsite.com in its reporting as getting traffic to both. Here's the part of my htaccess that works with that part. Do you see anything missing or incorrect?

    # Redirect all requests to https
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{HTTPS} off
    RewriteRule ^(.*)$ https://whatevercoolsite.com/$1 [R=301,L]
    </IfModule>
    # End redirect all requests to https

    # Begin redirect from www. to normal domain
    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^www.whatevercoolsite.com$
    RewriteRule ^(.*)$ https://whatevercoolsite.com/$1 [R=301,L]
    </IfModule>
    # End redirect from www. to normal domain

    Who cares what SEMrush says? SEMrush is just making wild guesses at traffic.

    Can you actually access the WWW version of your URLs? What does your analytics and server logs show?

    That's all that matters.
    Signature

    For SEO news, discussions, tactics, and more.
    {{ DiscussionBoard.errors[11566210].message }}
  • Profile picture of the author expmrb
    Does your site exists with a www that you know of? Or its just SEMrush that is only showing it?
    Signature
    SEO Motionz Forum & Blog- Digital Marketing Forum & Blog,
    Forum Management & Promotion, SEO Tips, Money Making tips etc.
    {{ DiscussionBoard.errors[11566294].message }}
Avatar of Unregistered

Trending Topics