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.

PHP and 301

Discussion in 'PHP' started by danpadams, May 13, 2005.

  1. #1
    I have:

    RewriteRule ^(.*)$ http://www.balloonsculptist.com [L,R=301]

    In my .htaccess file yet I am trying to partly do away with the .htaccess file, at least for the thing that runs this item.
    SEMrush
    I know using the header('Location:*') function will redirect the page, but what about the 301 code that I am sending out?

    Any thoughts would help.
     
    danpadams, May 13, 2005 IP
    SEMrush
  2. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,297
    Likes Received:
    2,602
    Best Answers:
    461
    Trophy Points:
    710
    Digital Goods:
    29
    #2
    header ("HTTP/1.1 301 Moved Permanently");
    header ("Location: http://www.balloonsculptist.com/");
    PHP:
     
    digitalpoint, May 13, 2005 IP
    danpadams likes this.
  3. danpadams

    danpadams Peon

    Messages:
    101
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thank you very much. I had a feeling it would be done using the header function, but I wanted to make sure. That and I wasn't sure exactaly how it should be done.
     
    danpadams, May 13, 2005 IP
  4. danpadams

    danpadams Peon

    Messages:
    101
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Is there a website somewhere that tells how to use these codes?
     
    danpadams, May 13, 2005 IP
  5. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,297
    Likes Received:
    2,602
    Best Answers:
    461
    Trophy Points:
    710
    Digital Goods:
    29
    #5
    How to use what codes?
     
    digitalpoint, May 13, 2005 IP
  6. danpadams

    danpadams Peon

    Messages:
    101
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Like 404, 301, or the other number codes that are given as errors.
     
    danpadams, May 13, 2005 IP
  7. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,297
    Likes Received:
    2,602
    Best Answers:
    461
    Trophy Points:
    710
    Digital Goods:
    29
    #7
    digitalpoint, May 13, 2005 IP
  8. nevetS

    nevetS Evolving Dragon

    Messages:
    2,544
    Likes Received:
    211
    Best Answers:
    0
    Trophy Points:
    135
    #8
    nevetS, May 13, 2005 IP