# White page on search.php

**URL:** https://meta.discourse.org/t/white-page-on-search-php/52969
**Category:** Support
**Created:** [November 16, 2016, 2:45pm UTC](https://meta.discourse.org/t/white-page-on-search-php/52969 "2016-11-16T14:45:38Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![gauthier](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gauthier/32/59292_2.png) [@gauthier](https://meta.discourse.org/u/gauthier)
#### Post date: [November 16, 2016, 2:45pm UTC](https://meta.discourse.org/t/white-page-on-search-php/52969/1 "2016-11-16T14:45:38Z")

</div>

Hello,

I have an old page indexed by google: [mydomain.com/search.php](http://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](https://meta.discourse.org/search.php) = ko  
[https://meta.discourse.org/search.xyz](https://meta.discourse.org/search.xyz) = ko  
[https://meta.discourse.org/sqd.xyz](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

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [November 16, 2016, 2:55pm UTC](https://meta.discourse.org/t/white-page-on-search-php/52969/2 "2016-11-16T14:55:46Z")

</div>

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

---

<div class="post-metadata">

### Author: ![gdpelican](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gdpelican/32/81308_2.png) [@gdpelican](https://meta.discourse.org/u/gdpelican)
#### Post date: [November 16, 2016, 2:55pm UTC](https://meta.discourse.org/t/white-page-on-search-php/52969/3 "2016-11-16T14:55:49Z")

</div>

- [meta.discourse.org/search.php](http://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](http://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

---

<div class="post-metadata">

### Author: ![gauthier](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gauthier/32/59292_2.png) [@gauthier](https://meta.discourse.org/u/gauthier)
#### Post date: [November 16, 2016, 3:09pm UTC](https://meta.discourse.org/t/white-page-on-search-php/52969/4 "2016-11-16T15:09:11Z")

</div>

Thanks @gdpelican for the explanation :slight_smile:

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [November 16, 2016, 8:27pm UTC](https://meta.discourse.org/t/white-page-on-search-php/52969/5 "2016-11-16T20:27:43Z")

</div>

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

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [November 16, 2016, 9:02pm UTC](https://meta.discourse.org/t/white-page-on-search-php/52969/6 "2016-11-16T21:02:18Z")

</div>

Sure, we should 404 here, fine with me.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [June 8, 2024, 12:45pm UTC](https://meta.discourse.org/t/white-page-on-search-php/52969/7 "2024-06-08T12:45:17Z")

</div>

This topic was automatically closed after 2760 days. New replies are no longer allowed.
