...

View Full Version : Page redirect



cooly291
08-04-2005, 02:59 AM
I would like my domain to point to /index.php?id=news, rather than /index.php

how can I do this?

Ranger56
08-04-2005, 03:01 AM
This is how I do it.


<?php
include("headers.php");

if (is_file("$page.php")) {
include("$page.php");
}

else {
include("news.php");
}

include("footers.php");
?>

and i just link to things like this

<a href="index.php?page=media">Media</a>

http://www.spiderseatbabies.com/swee/index.php?page=media

_Aerospace_Eng_
08-04-2005, 03:18 AM
I think they are just trying to get index.php to redirect to a new page when its called. You could place this at the top of index.php

<?php
header ("Location: http://www.yourdomainname.com/index.php?id=news");
?>

cooly291
08-04-2005, 03:34 AM
except the one you just gave me makes you have to change your cookie setting around..



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum