White page on search.php

Hello,

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?
Why
https://meta.discourse.org/search.php = ko
https://meta.discourse.org/search.xyz = ko
https://meta.discourse.org/sqd.xyz = ok

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

Thanks

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

1 Like
  • meta.discourse.org/search.php 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.
  • meta.discourse.org/wark.php 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

9 Likes

Thanks @gdpelican for the explanation :slight_smile:

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

Sure, we should 404 here, fine with me.

5 Likes