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]