By kostal on
I set up a site in a subdirectory on my host. Everything worked great.
I then made it live by changing the root from htdocs to htdocs/drupal.
Everything works perfectly but I get this 200 OK error showing up at the bottom of all the pages.
So after it prints
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>200 OK</title>
</head><body>
<h1>OK</h1>
<p>The server encountered an internal error or
misconfiguration and was unable to complete
your request.</p>
<p>Please contact the server administrator,
[no address given] and inform them of the time the error occurred,
and anything you might have done that may have
caused the error.</p>
<p>More information about this error may be available
in the server error log.</p>
</body></html>
I've checked the server error log (admin/reports/dblog) and nothing really makes sense to me there.
Any ideas why this is happening? The site is working 100% but I don't know what this error is, and even if it is an error, I'd rather have it just put it in the log and not show on pages. I checked this option in error reporting but it still prints.
Hmm.
Any ideas of how to troubleshoot/resolve would be mucho appreciated!
Thanks!
Comments
Anybody?
Any ideas?
Looks like this was an
Looks like this was an htaccess issue and how clean urls were being configured.
Can you describe your solution?
I am having the same problem on Network Solutions shared hosting. Can you describe your solution?
lunk_rat is Acquia Certified Grand Master
Here's how I fixed it
I'm also on NetSol and I have my site set up as a subdomain so I'm not sure if this applies to your situation or not. When I turned off clean URLs it worked just fine, but I got the 200 OK error on nearly every page after clean URLs were turned on. In my case, the "clean URL tester" validated my setup saying that clean URLs would work fine, but clearly they didn't. Anyway, to fix it I had to modify RewriteBase in the .htaccess file like so: "RewriteBase /" I just tried this on a whim since I didn't think it would really work but I'd tried just about everything else. My site is set up to point the subdomain to a subfolder as it's root and this change to htaccess made clean URLs work.
Thanks for the suggestion
I also have this problem whenever I submit a story (or any content type for that matter).
RewriteBase / worked!
I have a site running Drupal 6.13 on NetSol shared hosting in a subdirectory with a subdomain pointed to it. The install went fine, but when I would enable modules or randomly I got 200 OK errors. Everything seemed to be working 'OK'. I modified .htaccess file that came with Drupal by uncommenting line 101:
# If your site is running in a VirtualDocumentRoot at http://example.com/,
# uncomment the following line:
RewriteBase /
The 200 ok errors have gone away.
Thanks!
uncommenting rewritebase/ works indeed
Thanks you for the solution! It really saved me! :)
Thanks!
Uncommenting "RewriteBase /" helped me too. I was getting the "200 OK" error on a Network Solutions shared hosting account any time I did anything that wrote to the database. Thanks for sharing!
RewriteBase / save my day!
RewriteBase / save my day! :)
Thanks!!
I'm also on NetSol shared hosting and was getting this error message. I thought I was in over my head, but this post saved my day! Thanks!
Same problem, same fix
I, too, encountered 200 OK errors whenever I log into the site using FF. I never seemed to get the message in Safari, however.
After uncommenting line 104,
RewriteBase /the errors stopped.
Thanks for the post.