Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
headers show 404, yet page still downloads?
Hi,
I was trying to check the validity of my HTML for my Vanilla site using W3C's HTML checker the other day when it came back with a 404. It showed a 404 on any page I tried in Vanilla.
When looking at the site using a browser all the pages download fine. I decided to check the http headers in firefox using the Web Developer toolbar when I noticed that it said the following:
http://www.riskcollective.com/community/
Date: Sun, 03 Feb 2008 11:08:26 GMT
Server: Apache/2.0.52 (CentOS)
X-Powered-By: Lussumo Vanilla 1.1.4
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Last-Modified: Sun, 03 Feb 2008 11:08:26 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Set-Cookie: wwsgd_visits=18; expires=Mon, 02-Feb-2009 11:08:26 GMT; path=/
X-Pingback: http://www.riskcollective.com/xmlrpc.php
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html; charset=UTF-8
How can it show a 404 yet download correctly - I'm so confused!! I obviously need to get this fixed otherwise the site won't get indexed by search engines.
The Vanilla installation is sitting inside a Wordpress installation. I'm using friendly urls in Vanilla and pretty permalink structure in WP.
Does anyone have any ideas??
Thanks,
Oli
0
This discussion has been closed.
Comments
header("HTTP/1.1 200 OK");
This might be something related to this: http://wordpress.org/support/topic/122089
I think Wordpress is overstepping by assuming the Vanilla URLs are invalid and inserting the 404, so we just write over it. The alternative would be to dig through Wordpress' code and change it's logic, or stop wrapping Vanilla inside Wordpress (which wouldn't necessarily require a subdomain)
Note also that one of the above linked threads mention that putting bbpress in a subdomain didn't work...