Okay, lige for at friske op..
index.php
<?
$str = preg_replace("'/'", "", $_SERVER['REQUEST_URI'], 1);
$dele = explode("/", $str);
$documenttitle = $dele[0];
$pictitle = $dele[0];
$pagetitle = $dele[0];
require_once("connect.php");
require_once("funktioner.php");
require_once("header.php");
?>
<div class="page">
<div class="pic">
<img src="grafik/<? echo $pictitle; ?>.png" />
</div>
<div class="liner"></div>
<div class="content">
<?
if(($dele[0] == "blog")){
vis_blog();
} else {
echo "Blah blah";
}
?>
</div>
</div>
<?
require_once("footer.php");
?>
.htaccess
Alias /blog index.php
Alle filer ligger i root.
Indlæg senest redigeret d. 01.05.2007 16:57 af Bruger #10850