Combine PageRank with and without www

Discussion in 'Google' started by ahelpinghand, Apr 28, 2007.

  1. #1
    I have read somewhere that I can combine the PageRank for my site with and without www using php but I can't remember how, would you tell me how to achieve that using php and headers? I don't have access to the .htAccess file so I think php is my only choice.

    Also, if I use php, will I put the script in every page or just the home page?
     
    ahelpinghand, Apr 28, 2007 IP
  2. Blau

    Blau Peon

    Messages:
    138
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    i saw it yesterday. Please search it in the last page.
    if i find it, i'll post it here.
     
    Blau, Apr 28, 2007 IP
  3. Idiot Inside

    Idiot Inside Well-Known Member

    Messages:
    1,300
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    155
    #3
    you can do that by simply redirecting non www. format to www. one or vice versa.

    I do that using .htaccess; put this code in your .htaccess and wait for next update.

    RewriteEngine On
    RewriteCond %{HTTP_HOST} !^www
    RewriteRule .? http://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
    Code (markup):
     
    Idiot Inside, Apr 28, 2007 IP
  4. feha

    feha Active Member

    Messages:
    1,005
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    80
    #4
    how to change ii if you want without www. ?
     
    feha, Apr 28, 2007 IP
  5. ahelpinghand

    ahelpinghand Guest

    Best Answers:
    0
    #5
    PHP please
     
    ahelpinghand, Apr 28, 2007 IP