I've always used PHP to include pages into the index file (index.php) but i want a clean URL without using GET method and a SEO friendly solution, i don't now other ways to do this (instead of website.com/index.php?page=about it would be website.com/about) I use PHP in the top of the index.php to tell my website with site shall be picket:
<?php
$page=$_GET['page'];
if($page!=''){
$page=$_GET['page'];
}else{
$page="homepage";
}
?>
And I use this where the page shall be includet:
<?php
if($page){
include("pages/".$page.".php");
}else{
include("pages/homepage.php");
}
?>
And my links look like this:
<a href="?page=homepage" <?php if ($page == 'homepage') { ?>class="active"<?php } ?>>forside</a>
I really hope you can give me a good solution, the programming language is pretty much up to you.
Thank you