- Impact
- 13
Hello, I am currently working on a website which uses PHP include function to obtain pages. I am no way a great coder in PHP. The code im using is available online.
Basicly ive placed the following code in a table and when a link is clicked it opens up in the table. Im just wondering how search engines react to this kind of system and if theres a better way of doing it.
I then place this <a href="?pg=home">Home</a>
Once the page is loaded i get urls like:
http://www.thewebsitename.com/?pg=home
http://www.thewebsitename.com/?pg=audio
I would like my urls to be like the following:
http://www.thewebsitename.com/home
http://www.thewebsitename.com/audio
Thanks for taking the time to read this and for the help in advance.
Darren.
Basicly ive placed the following code in a table and when a link is clicked it opens up in the table. Im just wondering how search engines react to this kind of system and if theres a better way of doing it.
PHP:
<?php
function home()
{
include "inc/home.php";
}
$choice=$_GET['pg'];
switch($choice)
{
case "home": include "inc/home.php"; break;
case "biography": include "inc/biography.php"; break;
case "discography": include "inc/discography.php"; break;
case "media": include "inc/media.php"; break;
case "shop": include "inc/shop.php"; break;
case "forum": include "inc/forum.php"; break;
case "contact": include "inc/contact.php"; break;
default:
home();
}
?>
I then place this <a href="?pg=home">Home</a>
Once the page is loaded i get urls like:
http://www.thewebsitename.com/?pg=home
http://www.thewebsitename.com/?pg=audio
I would like my urls to be like the following:
http://www.thewebsitename.com/home
http://www.thewebsitename.com/audio
Thanks for taking the time to read this and for the help in advance.
Darren.








