Signing up for directories...

Discussion in 'Directories' started by cellphone_store, Apr 11, 2005.

  1. #1
    When I signed up for directories I put my website link as "http://URL-HERE.com". In my site my links are "http://www.URL-HERE.com" (they used to not have the www).

    Would spiders think that "http://www.URL-HERE.com" and "http://URL-HERE.com" are 2 different websites?

    Should I resubmit my website to the directories with the different URL? (different as in with a "www" and without a "www")
     
    cellphone_store, Apr 11, 2005 IP
  2. egdcltd

    egdcltd Peon

    Messages:
    691
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I think it depends on the search engine. In the past, when I have searched for my site on Google, altering the URL has brought up different results.
     
    egdcltd, Apr 11, 2005 IP
  3. Will.Spencer

    Will.Spencer NetBuilder

    Messages:
    14,789
    Likes Received:
    1,040
    Best Answers:
    0
    Trophy Points:
    375
    #3
    Those will be seen as two different web sites.

    However, you can make Google see them as the same website by 301 redirecting one of the URLs to the other.
     
    Will.Spencer, Apr 11, 2005 IP
  4. davedx

    davedx Peon

    Messages:
    429
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I think Google relatively recently made it so they both count as the canonical name for your domain. Don't quote me, think it was a post by Googleguy somewhere...

    301 is still a good option though, for the sake of search engines who will count them separately. You can do it easily in .htaccess:

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

    That's quite specific, you can generalise it for multiple subdomains with wildcards too of course...
     
    davedx, Apr 11, 2005 IP
  5. cellphone_store

    cellphone_store Peon

    Messages:
    22
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Thanks for all the help. The code above was to change a www-url to a non-www-url.

    I used this code, which changes a non-www to a www:
    Options +FollowSymLinks
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^yourdomain\.com
    RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [R=permanent,L]
     
    cellphone_store, Apr 11, 2005 IP
  6. Valtar

    Valtar Guest

    Messages:
    79
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I don't know, I find that I have to search with and without the www. still to see my links. They maybe changing it tho, I do find some people automatically put a www. in front of your URL even when your URL doesn't have it in front of it. It would be nice if they did merge them.
     
    Valtar, Apr 11, 2005 IP
  7. cellphone_store

    cellphone_store Peon

    Messages:
    22
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    a 2nd problem occured

    since I used the code above to redirect all my URLS to start with "http://www." now all my SSL urls (http://) gets redirected to "http://www.". This causes a problem because pages are no longer secure.

    currently this is how my redirect works:
    http://yourdomain.com -> http://www.yourdomain.com
    http://www.yourdomain.com -> http://www.youdomain.com
    https://yourdomain.com -> http://www.youdomain.com
    https://www.yourdomain.com -> http://www.youdomain.com

    Is there a way to reserve the SSL urls to not change?

    Ultimately I would want this to happen:
    http://yourdomain.com -> http://www.yourdomain.com
    http://www.yourdomain.com -> http://www.youdomain.com
    https://yourdomain.com -> https://youdomain.com
    https://www.yourdomain.com -> https://youdomain.com

    I would like to know if this is possible with the .htaccess file.

    p.s. (i need to keep the SSL urls like "https://yourdomain.com" because when I bought the SSL certificate I didn't include the www)
     
    cellphone_store, Apr 11, 2005 IP