Problems with URL's

Discussion in 'Site & Server Administration' started by amiman, Feb 24, 2014.

  1. #1
    Checking my adsense I keep seeing URL that are confusing especially the www. part.

    example are

    mx1. mysite. com
    w. mysite. com
    ww1. mysite. com
    imap. mysite. com

    How do I stop this and just make it go to www. mysite
    Thanks in advance
     
    Solved! View solution.
    amiman, Feb 24, 2014 IP
  2. WebLab

    WebLab Active Member

    Messages:
    229
    Likes Received:
    7
    Best Answers:
    2
    Trophy Points:
    65
    #2
    what do you mean by checking my adsense ?
     
    WebLab, Feb 24, 2014 IP
  3. amiman

    amiman Well-Known Member

    Messages:
    525
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    108
    #3
    when I check the performance reports in my adsense account these urls are listed as displaying ads that day
     
    amiman, Feb 24, 2014 IP
  4. pozer

    pozer Active Member

    Messages:
    603
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    80
    #4
    pozer, Feb 24, 2014 IP
  5. amiman

    amiman Well-Known Member

    Messages:
    525
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    108
    #5
    Thats the problem they are not sub domains, its just they are getting to the site using the shown URL's which do not exist.
     
    amiman, Feb 24, 2014 IP
  6. #6
    You may want to try to use canonical URLs via mod rewrite.
    Options +FollowSymLinks
    RewriteEngine on
    RewriteCond %{HTTP_HOST} !^www.example.com$ [nc]
    RewriteRule ^(.*)$ http://www.example.com/$1 [r=301,nc,L] 
    Code (markup):
    This rule basically says if the host in the incoming request does not match www.example.com redirect to www.example.com.

    Search google for more info about canonical urls.
     
    jeffatrackaid, Feb 26, 2014 IP
  7. amiman

    amiman Well-Known Member

    Messages:
    525
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    108
    #7
    Thanks I will do that, thats what I was after just did not know what to search for.
     
    amiman, Feb 27, 2014 IP