Jump to content

jim39

New Members
  • Posts

    7
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

jim39's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Thanks. I can't get this work - when I place header("HTTP/1.0 404 Not Found"); header("Status: 404 Not Found"); it just shows all pages 404. here is my code without header("HTTP/1.0 404 Not Found"); <?php $id = (int)$_GET['id']; if(isset($id)) { include "config.php"; $sorgu = "select * from table where id=$id"; $sonuc = mysql_query($sorgu) or die(mysql_error()); $baslik1 = mysql_fetch_row($sonuc); ?> <?php #sorgula $sorgu = "select * from table"; $sonuc = mysql_query($sorgu) or die(mysql_error()); ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  2. Thank you! but page.php is still in use so when we add header("HTTP/1.0 404 Not Found"); header("Status: 404 Not Found"); we are automaticly redirecting all pages regardless of empty or not. I am looking for more if the page empty do 404 if not display the whatever information comes from mysql db? does this make sense? Thanks That wont always work, when you throw an error page, you should do it like so: header("HTTP/1.0 404 Not Found"); header("Status: 404 Not Found"); you will also want to make a custom 404 page, and in that case you would do this: // If the file is not found run this: header("HTTP/1.0 404 Not Found"); header("Status: 404 Not Found"); readfile("/errors/404.html"); exit;
  3. Hi I have deleted quite lot data from mysql database however, php still shows that page but blank ie page.php?id=186 - this id and all assosiated fields with this id has been removed from mysql but id still showing on the net and google cached all of them ( 600 pages) . page.php is still in use but I was wondering if there is any way not to show these blank pages/ids from mysql db and more importantly how can I remove these blank pages from google? Thanks for your help.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.