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.

a 301 redirect/php question

Discussion in 'Apache' started by disgust, Jul 3, 2004.

  1. #1
    I was just curious, is it possible to...

    check if a page exists, and if it doesn't, have it 301 redirect to your home page?

    it'd be an interesting way to gain a bit of PR, plus it'd redirect the "lost" visitor.
    SEMrush
     
    disgust, Jul 3, 2004 IP
    SEMrush
  2. schlottke

    schlottke Peon

    Messages:
    2,185
    Likes Received:
    63
    Best Answers:
    0
    Trophy Points:
    0
    #2
    create a 404 Error page for your entire server and have it be a 301 Redirect..
     
    schlottke, Jul 3, 2004 IP
  3. disgust

    disgust Guest

    Messages:
    2,417
    Likes Received:
    133
    Best Answers:
    0
    Trophy Points:
    0
    #3
    if it's a 404, though, doesn't the browser (and therefor google..) see that it's a 404 error and not a 301?
     
    disgust, Jul 3, 2004 IP
  4. bhutz

    bhutz Peon

    Messages:
    76
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Hey I don't know if this exactly what you want but I have tried to find something that you can use in .htaccess

    Found this...http://www.webmasterworld.com/forum21/1126-1-15.htm

    Basically it suggests adding this to your .htaccess file found in the root of your site

    Redirect 301 / http://www.blingtones.co.uk/index.php 
    Code (markup):
    Not entirely sure how this works because I had a go hoping that typing blingtones.co.uk would redirect to index.php which it did but for some reason forgot the stylesheet and also messed up the design of the page, hope no new visitors saw it :eek:

    I also just found that I can use this in my .htaccess for 404 error redirects which is fairly useful

    ErrorDocument 404 http://www.blingtones.co.uk 
    Code (markup):
    Try the 301 redirect and see how you get on ;)
     
    bhutz, Jul 3, 2004 IP
  5. Voyager

    Voyager Guest

    Messages:
    46
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    This does not sound correct to me.

    I changed my domain name in May and setup a 301 Redirect to forward users to the same page at the new domain.

    PR or anchor text have not transferred to the new domain name.

    I slid from approximately 4,800 unique visitors a day to about 750 unique visitors a day. :mad:

    So... I don't think a 301 strategy will gain you a bit of PR.

    Of course, I could be wrong. :D
     
    Voyager, Jul 3, 2004 IP