Blog indexed without www

Discussion in 'Search Engine Optimization' started by danger9918, Jan 12, 2008.

  1. #1
    my blog snooplove.com got indexed without the www
    can someone explain this to me ???

    one more thing,, my site is appearing on google with an html code although im using All in one seo ...

    thanks in advance , +rep for helpful members
     
    danger9918, Jan 12, 2008 IP
  2. btsx

    btsx Well-Known Member

    Messages:
    223
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    110
    #2
    Try adding this in .htaccess for redirect from without www to with www

    RewriteCond %{HTTP_HOST} ^snooplove\.com
    RewriteRule ^(.*)$ http://www.snooplove.com/$1 [R=301,L]
    Code (markup):
     
    btsx, Jan 12, 2008 IP
  3. gr8liverpoolfan

    gr8liverpoolfan Notable Member

    Messages:
    6,719
    Likes Received:
    538
    Best Answers:
    0
    Trophy Points:
    285
    #3
    You seem to have redirected the www version to the non www version.
     
    gr8liverpoolfan, Jan 12, 2008 IP
    danger9918 likes this.
  4. danger9918

    danger9918 Well-Known Member

    Messages:
    1,612
    Likes Received:
    55
    Best Answers:
    0
    Trophy Points:
    165
    #4
    how can i un-redirect it ?? :p
     
    danger9918, Jan 12, 2008 IP
  5. Veej

    Veej Active Member

    Messages:
    364
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    60
    #5
    Open your .htaccess file - let me know if you don't know what it is and I can explain further - and delete the redirection (you should be able to make out which part is redirecting).

    If you'd like more help, I'd be happy to help on the forum address in my sig.
     
    Veej, Jan 12, 2008 IP
    danger9918 likes this.
  6. danger9918

    danger9918 Well-Known Member

    Messages:
    1,612
    Likes Received:
    55
    Best Answers:
    0
    Trophy Points:
    165
    #6
    i know whats the .htaccess file but how can i delete the redirection ??
     
    danger9918, Jan 12, 2008 IP
  7. Veej

    Veej Active Member

    Messages:
    364
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    60
    #7
    Could you paste the contents of your .htaccess file here and hopefully me or someone else will be able to tell you what you need to delete to stop the redirect.
     
    Veej, Jan 12, 2008 IP
  8. danger9918

    danger9918 Well-Known Member

    Messages:
    1,612
    Likes Received:
    55
    Best Answers:
    0
    Trophy Points:
    165
    #8
    Here it is


    # BEGIN Url Rewrite section
    # (Automatically generated. Do not edit this section)
    <IfModule mod_rewrite.c>
    RewriteEngine On

    RewriteBase /

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d [OR]
    RewriteCond %{REQUEST_FILENAME} gallery\_remote2\.php
    RewriteCond %{REQUEST_URI} !/main\.php$
    RewriteRule . - [L]

    RewriteCond %{THE_REQUEST} /d/([0-9]+)-([0-9]+)/([^/?]+)(\?.|\ .)
    RewriteCond %{REQUEST_URI} !/main\.php$
    RewriteRule . /main.php?g2_view=core.DownloadItem&g2_itemId=%1&g2_serialNumber=%2&g2_fileName=%3 [QSA,L]
    RewriteCond %{THE_REQUEST} /v/([^?]+)\.davmount(\?.|\ .)
    RewriteCond %{REQUEST_URI} !/main\.php$
    RewriteRule . /main.php?g2_view=webdav.DownloadDavMount&g2_path=%1 [QSA,L]
    RewriteCond %{THE_REQUEST} /w(/[^?]*)?(\?.|\ .)
    RewriteCond %{REQUEST_URI} !/main\.php$
    RewriteRule . /main.php?g2_controller=webdav.WebDav&g2_path=%1 [QSA,L]
    RewriteCond %{THE_REQUEST} /v/([^?]+)(\?.|\ .)
    RewriteCond %{REQUEST_URI} !/main\.php$
    RewriteRule . /main.php?g2_path=%1 [QSA,L]
    </IfModule>

    # END Url Rewrite section
     
    danger9918, Jan 12, 2008 IP
  9. Professional Dude

    Professional Dude Prominent Member

    Messages:
    6,261
    Likes Received:
    430
    Best Answers:
    0
    Trophy Points:
    330
    #9
    are you running any more scripts? looks like thats the problem ;)
     
    Professional Dude, Jan 12, 2008 IP
  10. danger9918

    danger9918 Well-Known Member

    Messages:
    1,612
    Likes Received:
    55
    Best Answers:
    0
    Trophy Points:
    165
    #10
    i installed gallery 2 and then tried uninstalling it which caused some issues so i had to delete the files manually
     
    danger9918, Jan 12, 2008 IP
  11. gamefray

    gamefray Peon

    Messages:
    460
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #11
    Make sure you only have one version though. Having both www and non www will create a duplicate content issue.
     
    gamefray, Jan 12, 2008 IP
  12. afiliator

    afiliator Peon

    Messages:
    8
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #12
    HOLD UP!!! Don't do anything above.... because....

    It seems like you are using WordPress (All-in-one SEO Pack is Wordpress plugin). WordPress does this automatically for you.

    Just go to your control panel > Options

    In Options, for WordPress address (URL), and Blog address (URL), add the www. to your url, everything will be redirected with a www.

    This is simple, don't make it complicated using .htaccess....

    Afiliator
     
    afiliator, Jan 12, 2008 IP
    danger9918 likes this.
  13. gamefray

    gamefray Peon

    Messages:
    460
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #13
    Great point. Also, if you are going for SEO, I also suggest getting the Google-Sitemaps-XML plugin. It is one of the best wordpress plugins for SEO.

     
    gamefray, Jan 12, 2008 IP
    danger9918 likes this.