Did I make a mistake on my url?

Discussion in 'Search Engine Optimization' started by jimmjr, May 20, 2008.

  1. #1
    Hi all,
    I've just created a site and had been marketing it as example.com (i.e. without the "www"). I just noticed that some directories require the link that I submit to be with "www". So I change all my links now to be with "www"?

    Are there other reasons I should use "www"?

    Thanks!
     
    jimmjr, May 20, 2008 IP
  2. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    437
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Mostly it's a personal preference, but regardless of whether you choose to use or not use www. in your URLs, you should pick one, be consistent, and redirect the other one to the version you chose.
     
    Dan Schulz, May 21, 2008 IP
    buffalo likes this.
  3. jimmjr

    jimmjr Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Hi Dan,
    Thank you for your reply.

    I actually decided on "no www". And I had been consistent with my links, both external and internal. And my site is set-up to re-direct to the "no www" if visitors entered via the "www".

    So everything was fine till I tried to get a listing in a directory, that require the link to be with "www". So my worry is that I would end up splitting my backlinks between the 2 urls, and effectively halving the positive effects.

    Is my worry unfounded?
     
    jimmjr, May 22, 2008 IP
  4. astup1didiot

    astup1didiot Notable Member

    Messages:
    5,926
    Likes Received:
    270
    Best Answers:
    0
    Trophy Points:
    280
    #4
    This is why you 301 redirect one to the other; this properly transfers over the link\Pagerank value. This way even if you use the non-www version you can still submit your site to directories with the www in the URL syntax. Use the below code in your .htaccess to properly forward the domain URL. Make sure to change your domain to yours, leave all variables intact.

    
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^www.yourdomain\.com$ [NC]
    RewriteRule ^(.*)$ http://yourdomain.com/$1 [R=301,L] 
    
    
    
    Code (markup):
     
    astup1didiot, May 22, 2008 IP
  5. wavetowake

    wavetowake Peon

    Messages:
    93
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    hmm, never thought about this. thanks for the post! do search engines actually look at www and non-www as different domains... ?
     
    wavetowake, May 22, 2008 IP
  6. astup1didiot

    astup1didiot Notable Member

    Messages:
    5,926
    Likes Received:
    270
    Best Answers:
    0
    Trophy Points:
    280
    #6
    Yes, they consider them different "web pages". You also want to redirect your index file to your domain name as well, see below...

    These are all considered seperate webpages...


    
    RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/      
    RewriteRule ^index\.php$ http://mywartremover.com/ [R=301,L]    
    
    Code (markup):
    I assumed thats the domain your taking about.. visit the URL with index.php and without before adding the code, it will load the same web page :)
     
    astup1didiot, May 22, 2008 IP
  7. mberman84

    mberman84 Peon

    Messages:
    511
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #7
    its up to you, but whatever you choose you should be consistent. as long as you 301 redirect one to the other, you should be fine, even if the directory require www.
     
    mberman84, May 22, 2008 IP
  8. jimmjr

    jimmjr Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Thanks ssandecki!

    About the htaccess file, as my site was built using Wordpress, my current file looks like this:
    Can I still add the lines you mentioned, or do I need something else?
     
    jimmjr, May 22, 2008 IP