302 server status code to 404 server status code

Discussion in 'PHP' started by hoo, May 22, 2011.

  1. #1
    Hello,

    Sorry for my english.
    I have an arcade site.
    mydomain.com/game.html If database has the game name is good.
    mydomain.com/fd43f54.html if database has not the game name redirect to mydomain.com by 302 error code.
    if database has not the game name i want a 404 error code and no redirect.
    I attached file.php to this post. Thank you very much for help.

    my htaccess file:

    RewriteEngine on
    RewriteRule ^([_A-Za-z0-9-]+).html file.php?f=$1 [L]
    RewriteRule ^([_A-Za-z0-9-]+)/$ browse.php?c=$1 [L]
    RewriteRule ^([_A-Za-z0-9-]+)/([0-9]+) browse.php?c=$1&page=$2 [L]
     

    Attached Files:

    hoo, May 22, 2011 IP
  2. bartolay13

    bartolay13 Active Member

    Messages:
    735
    Likes Received:
    14
    Best Answers:
    1
    Trophy Points:
    98
    #2
    hmmm i didnt catch that
     
    bartolay13, May 23, 2011 IP