Hola gracias por responder... hize todo lo que me dijste pero me sale un error que es lo que estoy haciendo mal el erro es este.. y una otra cosa cuando pongo index.php?=001 no imprime la pagina 001.php siguie ahi en index.php
index.php
Código PHP:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Documento sin título</title>
</head>
<body>
<?
// Donde se incluyen las paginas de forma automatica (con la url index.php?id=nombrepagina
// se abriria la pagina nombrepagina.php en esta parte).
if(!$id) {
include("home.php");
}
else {
if(file_exists("$id.php")) {
include("$id.php");
}
else {
include("error.php");
}
}
?>
<p>probando .............. </p>
<p><a href="index.php?=001">link</a></p>
</body>
</html>
001.php
Código PHP:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Documento sin título</title>
</head>
<body>
nueva web bla bla
</body>
</html>
cuando lo subi al servidor me arroja este error
Warning: main(home.php): failed to open stream: No such file or directory in /home/stepweb/public_html/e/index.php on line 13
Warning: main(): Failed opening 'home.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/stepweb/public_html/e/index.php on line 13
probando ..............
Link de la pagina
AQUI