1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

301 mod rewrite to transfer PR

Discussion in 'Apache' started by retSaMbew, Sep 13, 2005.

  1. #1
    Hello guys

    just inquiring as to the best way of making a 301 to transfer PR
    which is the best way:

    1) .htaccess entry of the following type:

    RewriteRule ^(.*)\.php$ http://www.somesite.com/newpagename-$1.html [r=301]

    2) header command - like header("location:$someurl") in PHP - does it give give a 301 code to the user agent at HTTP request?

    also if I dont specify [r=301] in the rule like this:

    RewriteRule ^(.*)\.php$ http://www.somesite.com/newpagename-$1.html

    will it give a 302 redirect code?

    Very much appreciated guys...

    RS
     
    retSaMbew, Sep 13, 2005 IP
  2. Shoemoney

    Shoemoney $

    Messages:
    4,474
    Likes Received:
    588
    Best Answers:
    0
    Trophy Points:
    295