PDA

View Full Version : Warning: To many redirects:?


pimpyourdino
April 9th, 2008, 09:04 PM
I added a sitemap to my webmaster account and i get this message...

URLs not followed
When we tested a sample of the URLs from your Sitemap, we found that some URLs were not accessible to Googlebot because they contained too many redirects. Please change the URLs in your Sitemap that redirect and replace them with the destination URL (the redirect target). All valid URLs will still be submitted.

And it points to one of my layout preview pages. Is it saying this because in the preview page all the links are friendster.com links or what? Do I need to make a preview page that doesnt display friendster urls?

Heres the page it says is doing this.

http://www.yourlifeandmore.com/friendster-layouts/preview.php?alias=pink--blue-stars

Thanks!

pimpyourdino
April 9th, 2008, 09:21 PM
Eh I looked at the codec and mabey its this its says redirect all over it...


<script>
var langVar;
var redirectUrl;

function showLanguagePanel(langType,anon) {

redirectUrl = document.location.href;

/* no parameter(s) in URL */
if (redirectUrl.indexOf("?lang") == -1 && redirectUrl.indexOf("?") == -1) {
langVar = "?lang=" + langType;
redirectUrl += langVar;
}
/* parameter ?lang present in URL */
else if (redirectUrl.indexOf("?lang") != -1) {
langVar = "?lang=" + langType;
redirectUrl = redirectUrl.replace(redirectUrl.substring(redirect Url.indexOf('?lang'),redirectUrl.length),langVar);
}
/* parameter &lang present in URL */
else if (redirectUrl.indexOf("&lang") != -1) {
langVar = "&lang=" + langType;
redirectUrl = redirectUrl.replace(redirectUrl.substring(redirect Url.indexOf('&lang'),redirectUrl.length),langVar);
}
/* a non-lang parameter present in URL */
else {
langVar = "&lang=" + langType;
redirectUrl += langVar;
}

if(anon == 'y' || anon == '') {
updateLanguage('session');
}
else {
openDiv('languagePanel'); /* give popup box when user is logged in */
}
}

function updateLanguage(changeType) {
if(changeType == 'perm') {
redirectUrl += "&updatelang=1";
document.location.href = redirectUrl;
}
else {
document.location.href = redirectUrl;
}
}
</script>