My URL is currently like this: home.php?x=matches&page=viewmatches
I want to have it like this matches/viewmatches/ instead
I am currently testing this on my local server. The site is located at http://127.0.0.1/new
So it is not in the root directory ( htdocs ) Does this matter when I use mod_rewrite?
Could someone please guide me on doing this.
This is my code:
Options +FollowSymLinks RewriteEngine On RewriteRule ^(.*)/(.*)/$ home.php?x=$1&page=$2 [L]
and the PHP nav:
<?
if (isset($_GET['page']) && isset($_GET['x']) && file_exists('mods/'.$_GET[x].'/'.$_GET[page].'.php')) {
include 'mods/'.$_GET[x].'/'.$_GET[page].'.php';
}
else {
include ("news.php");
}
?>
I tried going to http://127.0.0.1/new...hes/viewmatches it worked... well it came up the page but no images and no css. All messed up.
But anyway that's not how I want it to be.. it should be 127.0.0.1/new/matches/viewmatches
//Extinct - Help appreciated!
