SEO and Google
Posted: Thu Oct 06, 2005 10:36 am
I have used htaccess to convert my urls to be SEO, but it seems that Google doesnt like them.
MSN has indexed the new form, so I am trying to figure out why Google won't take it also.
The stuff in the .htaccess is
and the code to create my prev/next links is
MSN has indexed the new form, so I am trying to figure out why Google won't take it also.
The stuff in the .htaccess is
Code: Select all
RewriteEngine on
Options +FollowSymlinks
RewriteRule display/news/([0-9]+) /display.php?news=$1
ErrorDocument 401 /index.php
ErrorDocument 403 /index.php
ErrorDocument 404 /index.phpCode: Select all
$news = $row['id'];
$max_results = 1;
if(!isset($_GET['news'])){
$news = 1;
} else {
$news = $_GET['news'];
}
//SQL CODE STUFF HERE
$from = (($news * $max_results) - $max_results);
$sql = mysql_query("SELECT * FROM table LIMIT $from, $max_results");
$total_results = mysql_result(mysql_query("SELECT COUNT(*) as Num FROM table"),0);
$total_news = ceil($total_results / $max_results);
//THEN the below makes the next/prev links
if($news > 1){
$prev = ($news - 1);
echo "<center><a href=\"http://siteurl.com/display/news/$prev\"><<-Previous</a> ";
}
if($news < $total_news){
$next = ($news+ 1);
echo " <a href=\"http://siteurl.com/display/news/$next\">Next->></a><br />";
}