Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

301 redirect question

edited August 2007 in Vanilla 1.0 Help
hi... supporse i have two pages, page A and B. Page A has many inlinks and high PR, page B does not. If I want page B to receive all the links and PG of page A, can I use php 301 redirect? (see code below).. the purpose is to tell google, "give credit to page A instead of B, couse B passes everything to page A".. so, am i doing it right? if not, which is the best way to do it? thanks code: header("HTTP/1.1 301 Moved Permanently"); header("Location: http://newavessays.com/different_essays.php"); exit;

Comments

  • the best way for google traffic is a .htaccess file on your old site containing this line:

    RewriteRule ^(.*) http://www.newdomain.com/$1 [L,R=301]
  • yes, but this would redirect all traffic from all pages on site B, correct?
  • right. isn't that what you look for?
  • edited August 2007
    If you want to just redirect one page:

    RewriteRule ^different_essays.php http://www.newdomain.com/different_essays.php [L,R=301]
    (I think)
  • edited August 2007
    i want ONE page on a site to redirect (and pass PR and inlinks) no another SINGLE PAGE on a different site.
  • and what about the php redirect i use.... doesn't it perform the function i want?
  • The .htaccess and PHP methods are both two different ways to do the same thing--a 302 redirect. As far as I understand redirects, you use 301 if you wish to expire the old URL, and point to the new permanent location--like moving from one house to another. 302 is more like a vacation address--I'm not here now, but I might be back to this URL later, so continue to use this and just let the mail forward to where I am now. As far as I understand search engines, PR will get transfered as long as the domain remains the same. If you change domains, the redirect will still hold PR, but the redirecting URL will act like a normal PR "vote", so a protion of the PR value will transfer to the new domain.
  • edited August 2007
    did not understand much, Wallphone, but i guess im doing it right,.. i have two different domains, and I want one page on one of the domain to redirect to a page on another domain... if you google "different essays" the third result (http://cosmoessays.info/guidelines.php) i want to redirect to another page on another site of mine for certain reasons,,, i want the entire site to function, but this very page i want to forward to a different site, so i hope i pass PR and inlinks with that php 301 permanent redirect.. EDIT: the redirect is already setup
This discussion has been closed.