Here is what I do. You take all content and put them into .php files. You can then include them into your content when a link is clicked. This means you only have 1 page to edit to make changes to the layout.
So in your index.php you place this:
PHP:<?php $base = './include'; if (!isset($_GET['page']) || empty($_GET['page'])) { $file = "$base/home.php"; } else { $page = preg_replace('/[\W\.-]/si', '', $_GET['page']); $file = "$base/$page.php"; } $file = file_exists($file) ? $file : "$base/404.php"; require $file; ?>
Then links will look like this:
PHP:<a href="index.php?page=home" title="Home">Home</a>
All of the content for the homepage will be in ./include/home.php
Code:
HTTP 1/1 GET www.yoursite.com/index.php?page=../../../../../../../../../../../../etc/passwd
HELLO PASSWORD FILE!!


