<?php
$fullurl_arr = explode('/', $_SERVER['REQUEST_URI']);
$path = str_replace(array ('?' . $_SERVER['QUERY_STRING']), '', $fullurl_arr[1]);

if ($path == '' || $path == 'index.php') {
    require('home.php');
    exit;
}

switch ($path) {
    case 'content' :
        $_GET['p'] = $fullurl_arr[2];
        include 'content.php';
        exit;
        break;
    case 'shop' :
        $_GET['p'] = $fullurl_arr[2];
        include 'shop.php';
        exit;
        break;
}

#RewriteRule ^content/(.*) content.php?p=$1 [L]
#RewriteRule ^shop/(.*) shop.php?p=$1 [L]
#RewriteRule ^flash.txt flash.txt [L]

$_GET['c'] = 404;
include_once ('error.php');