Im having a major problem getting my MOD_rewrite script to work. Note all naming of links are hyperthetical for the purpose of the question:
I have and index.php page in the root folder setup like the following:
<?php
$page = isset($_GET['p']) ? $_GET['p'] : 'main';
switch($page) {
case 'contact': $title = 'title for contact'; $stylesheet = 'style.css'; break;
case 'main': $title = 'title for main'; $stylesheet = 'style.css'; break;
default: $page = 'main'; $title = 'title for main'; $stylesheet = 'style.css'; break;
}
include('include/header.php');
include('include/leftnav.php');
include('host/'.$page.'.php');
include('include/rightnav.php');
include('include/footer.php');
?>
Now all my content is in the folder "Host" so when I call the page the url is like so:
http://www.mydomain.com/index.php?p=about
I am trying to write a mod_rewrite to make this into a friendly url .....
Are there any apache guru's out there that could assist with this one for me...
Feel free to add me to MSN as well..............😃