I read some checklist for SEO. It says you shouldn’t have “?” in your links.
One of my websites is database driven and written in php. My links are basically like this:
[url]http://www.domain.com/content.php?id=16
How to do I change the ?id= to something like:
[url]http://www.domain.com/content.php/id/16
I would like to be able to do this without having to rewrite much of my code.
Here is the code:
[code=php]<?php
include(“dbconnect.php”);
$id=$_REQUEST[‘id’];
$start=$_REQUEST[‘start’];
$sqlprop=”Select * from Content where ContentID=’$id’ LIMIT 1″;
//$resprop=mysql_query($sqlprop,$db);
$resprop=mysql_query($sqlprop);
$oneprop=mysql_fetch_object($resprop);
$row = mysql_fetch_array($resprop);
?>