Need .htaccess help for my forum

Discussion in 'Search Engine Optimization' started by Arwen, Nov 13, 2009.

  1. #1
    Hello , google pr update gave my /index.php pr3 and my rest of the site remained pr1 ,
    i got some info that using if i use 301 redirect on my /index.php to domain root then google will recalcute my pr.

    if its yes can anyone help me what i've to add in my .htaccess .

    also i've problem with google webmasters tool.

    my sitemap is showing 10,000 urls submitted through sitemap and only 101 urls were index.

    my site is http://www.aiostop.com/ - pr1
    my index.php http://www.aiostop.com/index.php - pr3
    Code (markup):
    thank you
     
    Arwen, Nov 13, 2009 IP
  2. andrewaff

    andrewaff Well-Known Member

    Messages:
    267
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    125
    #2
    Options +FollowSymlinks
    RewriteEngine On
    RewriteCond %{HTTP_HOST} !^(www\.|$) [NC]
    RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

    Options +FollowSymLinks
    RewriteCond %{THE_REQUEST} ^.*/index.php
    RewriteRule ^(.*)index.php$ http://YOURSITENAME/$1 [R=301,L]


    Try to use above code this will work for giving 301 redirection non www pages to www and also index to root path.
    Hope this will help you. :)
     
    andrewaff, Nov 13, 2009 IP
    monfis likes this.
  3. yogi31286

    yogi31286 Active Member

    Messages:
    193
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    53
    #3
    where to use this code?!
    in .htaccess file?!!
     
    yogi31286, Nov 13, 2009 IP
  4. webdev007

    webdev007 Active Member

    Messages:
    1,037
    Likes Received:
    13
    Best Answers:
    3
    Trophy Points:
    88
    #4
    It will take quite long to index all the pages, may be couple of months.
     
    webdev007, Nov 13, 2009 IP
  5. Arwen

    Arwen Peon

    Messages:
    150
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    thanks mate its working, hope google will calculate the site soon :)
     
    Arwen, Nov 13, 2009 IP