SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Member tthmaz's Avatar
    Join Date
    Feb 2006
    Posts
    24
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    301 redirect and sitemaps questions

    Hi folks, juz a couple of simple questions that i would need some answer on:

    what is 301 redirect? i heard that when as a website publisher, you should redirect your mydomain.com to www.mydomain.com everytime as the domain with www. in front of it bears more value... Is that true?

    Btw, there was a time that i submitted two sitemaps to google, once for the domain without the www. and the seond with the www. I eventually took down the one with www.

    So, as you may expect, there's only results showing up when i type site:mydomain.com and only 1 result for site:www.mydomian.com... i was thinking, mayb i should have juz list two sitemaps for the same site... any benefits/harm of doing that? does that increase PR or anything?

  2. #2
    SitePoint Wizard silver trophy ldcdc's Avatar
    Join Date
    May 2004
    Location
    Ploiesti
    Posts
    4,475
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    as the domain with www. in front of it bears more value...
    That part is necessarily true. It depends where most links point to.
    HostPeek.com - budget hosts, compared
    CouponsNexus.com - web hosting coupons

    Ultra Cheap Hosts | Web Hosting Reviews Forums

  3. #3
    He's No Good To Me Dead silver trophybronze trophy stymiee's Avatar
    Join Date
    Feb 2003
    Location
    Slave I
    Posts
    23,423
    Mentioned
    2 Post(s)
    Tagged
    1 Thread(s)
    Just forward all of the pages without a www to have a www using a 301 redirect:

    RewriteEngine On
    RewriteCond %{HTTP_HOST} !^(.*)\.domain\.com$ [NC]
    RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L]

    That solves all of your problems.

  4. #4
    SitePoint Addict
    Join Date
    Dec 2005
    Posts
    380
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You don't need two sitemaps. All you need is
    to redirect domain.com to www.domain.com. Use
    stymiee's code and you'll be fine.
    I've been using www.HostGator.com
    for 38 months... and it's been awesome.

    Get The Maximum HostGator Discount With These HostGator Coupons!

  5. #5
    SitePoint Member tthmaz's Avatar
    Join Date
    Feb 2006
    Posts
    24
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks guys!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •