White page on search.php

(gauthier) #1


I have an old page indexed by google: mydomain.com/search.php
When i click on it, i get a blank page.

It’s seems this page, search.php doesn’t work on any discourse instance. Why?
https://meta.discourse.org/search.php = ko
https://meta.discourse.org/search.xyz = ko
Discourse Meta = ok

Is it a bug with the search feature?
It’s not really a problem, but it’s strange.


(Rafael dos Santos Silva) #2

Discourse doesn’t have a /search.php page, search resides on the /search page.

(James Kiesel) #3
  • 301 Moved Permanently is routed to a particular route in the application, but that route doesn’t know how to respond to a .php format. This results in a ‘406 - Unacceptable’ response, which Discourse doesn’t really know how to handle.
  • 301 Moved Permanently is not a route in the application, so it’s dropped by the router and returns a 404 - Not Found response, which Discourse knows how to handle.

This could be solved by routing 406 responses to the 404 landing page

(gauthier) #4

Thanks @gdpelican for the explanation :slight_smile:

(Jeff Atwood) #5

Thanks for the detailed analysis @gdpelican! Should we make this change @sam?

(Sam Saffron) #6

Sure, we should 404 here, fine with me.