Help with google statu verification - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Help with google statu verification (/showthread.php?tid=16096) |
Help with google statu verification - El Forum - 02-24-2009 [eluser]Kromack[/eluser] Hi all, First of all, sorry for my very bad english ! I have many site running on CI for our clients and all work fine exept for one site that can't be validate by google webmaster tools. This site use a massive routes based system (like our others sites...). The problem is that when I try to verify the site on the google webmaster tools by uploading an HTML file, google return this error : We’ve detected that your 404 (file not found) error page returns a status of 200 (Success) in the header. This issue is related into this other topics : http://ellislab.com/forums/viewthread/98650/ http://ellislab.com/forums/viewthread/59646/ Since 2 weeks that I try to solve this, I turned my .htaccess file into this : Quote:#RewriteEngine On Or into this (same issue) : Quote:# Turn on the Rewrite Engine The google HTML file is accessible by a browser BUT NOT by the google bot ! After many tests, It seems that : RewriteRule ^$ index.php? [L] is the problem. Without this line, the bot successfully validate the site but the site (roote based doesn't work ! 404 everywhere, routes are broken). My routes are based on the user guide here : http://ellislab.com/codeigniter/user-guide/general/routing.html Also, this should prevent the redirect to CI : # If the file or directory exists, show it RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d But it doesn't work... Is anobody have an idea ? I can provide more informations if needed... Thank's all Help with google statu verification - El Forum - 02-25-2009 [eluser]Kromack[/eluser] No suggestions ? Help with google statu verification - El Forum - 05-11-2009 [eluser]Kromack[/eluser] Found the solution ! Basically, in system/application/errors/error_404.php The : Code: <?php header("HTTP/1.1 404 Not Found"); ?> Have been removed for an unknown reason ! We looked around the htaccess rules since many weeks... xD |