Page is a not externally linkable
- Google
-- Google SEO News and Discussion
---- Is my internal redirect harming rankings?


Noddegamra - 10:27 am on Aug 18, 2010 (gmt 0)


Hi,

I have a website that works like this:

I have a script called a content handler that checks the URL entered. So, when people go to my root url (www.domain.com for example) it defaults to a page using the following code:


else
{
// Show Default Page
$section = "home";
$page = "index";
header("Location: $global_site_url/$section/$page.html");
}


In this case, when people go to www.domain.com it goes to www.domain.com/home/index.html which is the home page. Other pages/urls go to their respective areas.

So.. is this harming my site rankings? Is it doing weird things in search engines eyes for my root domain?

My .htaccess file contains the following code:


Options +FollowSymlinks
RewriteEngine on
RewriteRule ^([^/]+)/([^/]+).html index.php?section=$1&page=$2 [NC]


If someone goes to a page directly (as in the proper file structure such as www.domain.com/products/product.php) I use this


if(!$page)
{
$global_site_url = "http://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']."index.html";
header("Location: $global_site_url");
}


Which may also be harming rankings?

I'd just like a second opinion really to see if I am doing things ok or making a real huge mistake.

Thanks


Thread source:: http://www.webmasterworld.com/google/4188573.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com