is outragous. Having 2 of 50 pages indexed by search engines just short changes yourself. Instead (and im not sure if you all are doing this already), have your content stored in a database and retrieve your information using quieries. create pages on your server which follows a basic document tree. browse MSN.com. paying close attention to the urls, for a better idea of what I'm talking about.Google will only index 2 of your pages with the index?id= style..
you will have yourdomain.com and yourdomain.com/index.php
Instead of having 50+ pages listed in google you now have 2.
Master Kwesi Nkromah said:I've never heard this argument before. can someone sum up the points for me? most importantly the reasonings against using the "id" url attribute?
Even if they do index url's with a "?" in them,robots can't fully index the pages,and can sometimes be caught in a loop,causing robots to avoid the indexing of pages.
RewriteEngine on
RewriteRule ^([^/]+)/([^/]+)?$ index.php?id=$1/$2
RewriteEngine on
RewriteRule ^([^/]+)?$ index.php?id=$1
$id = $_GET['id'];
...
if(isset($id))
{
include('pages/'.$id.'.php');
}
else
{
include('pages/news.php');
}