SEO URL - reduce length of URL
Posted: Sat Dec 11, 2010 9:50 am
[text]I have created search engine friendly URL's from my dynamic ones so "/index.php?page=home" now displays as "/index/page/home", is there are way of getting it to work with "/home" instead[/text]
Code: Select all
<ul class="menu">
<a href="/dev/index/page/home">Home</a> <img src="images/present.png" height="38" width="35" alt="Logo"/>
<a href="/dev/index/page/hints">Hints & Tips</a> <img src="images/present.png"height="38" width="35" alt=" logo"/>
<a href="/dev/index/page/occasions">Occasions</a> <img src="images/present.png" height="38" width="35"alt=" logo"/>
<a href="/dev/index/page/blog">Blog</a> <img src="images/present.png" height="38" width="35"alt=" logo"/>
<a href="/dev/index/page/about">About</a>
</ul>
<br>
<?php
$page = $_GET['page'];
switch($page)
{
case('home'):
include ("home.php");
break;
case('about'):
include ("about.php");
break;
case('occasions'):
include ("occasions.php");
break;
case('blog'):
include ("blog.php");
break;
case('hints'):
include ("hints.php");
break;
default:
include ("home.php");
}
?>
[text]I have looked into the HTML Base tag, but not sure where to start, any help would be appreciated thanks[/text]