30, August 2008

google sitemaps problem - webmaster forum

 
Webdigity webmaster forums
This forum shares its ad revenue with its members!
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web site promotion  >  Search Engine Optimization  >  Google SEO
Topic: google sitemaps problem
« previous next »
Pages: [1] Print

Author Topic: google sitemaps problem  (Read 755 times)
aka J Love
Community Supporter ?
Bill Gates is my home boy
*****
Gender: Male
Posts: 884
1636 credits
Members referred : 4



« on: Jan 04, 2006, 07:38:25 AM »

when trying to submit my site to googles sitemap service, it reports that my sites 404 error page returns a status of 200 (OK) in the header. is there anyway to modify my custom error page to display 404 in the header like an original error page would? i deleted the custom page, then submitted, and it worked, so i added the custom page again. this simply bypasses the problem, and does not provide a permanent solution for it incase they run another check which im sure they will.

Visit through proxy Visit through proxy Visit through proxy

Last blog : phpHaze 1.59.1 in Development
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 8029
41131 credits
Members referred : 3



« Reply #1 on: Jan 04, 2006, 08:38:48 PM »

In the first line of your script write this :

Code:
<?php
header
("HTTP/1.0 404 Not Found");
?>


Trial and Error my two best teachers Cool
Join us @ facebook Visit through proxy

Last blog : MIA - Where Nick and Tim
aka J Love
Community Supporter ?
Bill Gates is my home boy
*****
Gender: Male
Posts: 884
1636 credits
Members referred : 4



« Reply #2 on: Jan 05, 2006, 09:08:17 AM »

hmm i think i tried that, but it gave error saying headers were already sent, and i cant remove them, because they load javascripts in the header (html)

Visit through proxy Visit through proxy Visit through proxy

Last blog : phpHaze 1.59.1 in Development
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 8029
41131 credits
Members referred : 3



« Reply #3 on: Jan 05, 2006, 11:05:27 PM »

Headers must be sent at the start of the script, before anything else.

Trial and Error my two best teachers Cool
Join us @ facebook Visit through proxy

Last blog : MIA - Where Nick and Tim
aka J Love
Community Supporter ?
Bill Gates is my home boy
*****
Gender: Male
Posts: 884
1636 credits
Members referred : 4



« Reply #4 on: Jan 17, 2006, 10:12:48 AM »

errr so adding this will not make the page not show up right? i like my custom error pages

Visit through proxy Visit through proxy Visit through proxy

Last blog : phpHaze 1.59.1 in Development
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 8029
41131 credits
Members referred : 3



« Reply #5 on: Jan 17, 2006, 08:36:14 PM »

It will show the page, unless the user has some kind of plugin in the browser, that will redirect to another page.

Trial and Error my two best teachers Cool
Join us @ facebook Visit through proxy

Last blog : MIA - Where Nick and Tim
aka J Love
Community Supporter ?
Bill Gates is my home boy
*****
Gender: Male
Posts: 884
1636 credits
Members referred : 4



« Reply #6 on: Feb 05, 2006, 09:53:10 PM »

hmm well i have seemed to avoid the problem for now, if it happens to arise again i am not sure how this will work, as i use php fusion on my main website (easy for me to make changes as I Am always at a different PC).. and the viewpage.php sends out its own headers, also I have pages that are not error pages which are used by viewpage.php so i dont want them to have the error 404 header..

Visit through proxy Visit through proxy Visit through proxy

Last blog : phpHaze 1.59.1 in Development
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=1138
Tags : php google browsers Bookmark this thread : Digg Del.icio.us Dzone more....

Topic sponsors:
Get a permanent link here for $1.99!


Pages: [1] Print 
Webdigity Webmaster Forums  >  Web site promotion  >  Search Engine Optimization  >  Google SEO
Topic: google sitemaps problem
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
Aug 30, 2008, 02:17:53 AM





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!


Forum Statistics
Total Posts: 36.176
Total Topics: 7.461
Total Members: 3.861
Tutorials : 56
Resources : 143
Designs : 220
Latest Member: matsolof

28 Guests, 4 Users online :

17 users online today:



Readers

Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2008 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.