Code: Select all
RewriteEngine On
RewriteRule !^(css|images|files)/ index.php [NC,L]
ErrorDocument 404 /I'm using my HTML template in quite a dodgey (probably poor) fashion, as below.
Code: Select all
//Grab the HTML template
ob_start();
include 'frontend/layout.php';
$template = ob_get_contents();
ob_end_clean();
$templateBits = explode('***CONTENT***', $template);
$header = $templateBits[0];
$footer = $templateBits[1];
//Output the page header
echo $header;
// ...
//Output the page footer
echo $footer;
Code: Select all
<link rel="stylesheet" href="style.css" type="text/css" media="screen" />Thanks.