i used this to set the homepage as a default. However its not as efficent as id like. You see the problem im having is that i want to set the action of main
if ($action == "home") {
include ("http://www.proxymx.com/main.php");
as the loaded include when you load index.php
so i set it out like so
if ($action == "home") {
include ("http://www.proxymx.com/main.php");
} elseif ($action == "legal") {
include ("http://www.proxymx.com/legal.php");
}
else include ('http://www.proxymx.com/main.php');
However, this presents a problem, if a page isnt found on request, it simply directs the user back to the mainpage.
What i want to do is when a user enters the site {index.php} i want them to see the main.php page included. And then use actions such as ?action=forums for other pages
the code i used is sufficent to do so, however if ever a page is not found, it simply returns to the mainpage, when i want it to display the standard error pages if a page is not found.
So in short what i want to do is set the main.php as the default include when a user loads index.php, However if they type the wrong action i want the standard error messages to show up
|