# NC 20 - search for contact results in error 404 (BUG?)

**URL:** <https://help.nextcloud.com/t/nc-20-search-for-contact-results-in-error-404-bug/95252>\
**Category:** ℹ️ Support\
**Tags:** nc20\
**Created:** [October 15, 2020, 9:29am UTC](https://help.nextcloud.com/t/nc-20-search-for-contact-results-in-error-404-bug/95252 "2020-10-15T09:29:22Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![nextgen-networks](https://help.nextcloud.com/user_avatar/help.nextcloud.com/nextgen-networks/32/931_2.png) [@nextgen-networks](https://help.nextcloud.com/u/nextgen-networks)\
**Post date:** [October 15, 2020, 9:29am UTC](https://help.nextcloud.com/t/nc-20-search-for-contact-results-in-error-404-bug/95252/1 "2020-10-15T09:29:23Z")

</div>

> **Within NC 20 search for an contact - click in a contact result and face a 404 error. Other results will be displayed as usual.**
>

system config:  
Ubuntu 18.04.05  
nginx  
php 7.4 fpm  
NC 20.0.0  
NC 20.0.1

The issue you are facing:

In comparison to the other working links, the 404 error seems to be due to a missing part in the URL.  
Between the domain and /apps/contacts the index.php is missing in this result category.  
Interestingly, it is still present in the overview of all search results (recognizable by a mouseover/hover), but is removed when clicking on the result.

The reason is probably the search component, the Contacts App or the Rewrite contidions of the webserver.

Is this problem known and has it already occurred in other installations?

An info here would be awesome.

Is this the first time you’ve seen this error? _(Y)_:

Issue opened here: [https://github.com/nextcloud/server/issues/23651](https://github.com/nextcloud/server/issues/23651)

---

<div class="post-metadata">

**Author:** ![nextgen-networks](https://help.nextcloud.com/user_avatar/help.nextcloud.com/nextgen-networks/32/931_2.png) [@nextgen-networks](https://help.nextcloud.com/u/nextgen-networks)\
**Post date:** [October 23, 2020, 10:28am UTC](https://help.nextcloud.com/t/nc-20-search-for-contact-results-in-error-404-bug/95252/2 "2020-10-23T10:28:54Z")

</div>

here is some additional info from the nginx logs:  
|2020-10-23 12:24:27|Access|CLIENT-IP|GET /index.php/apps/contacts/direct/UIDofCONTACT~kontakte HTTP/2.0|nginx SSL/TLS access|  
|2020-10-23 12:24:27|Error|CLIENT-IP|GET /apps/contacts/Alle%20Kontakte/UIDofCONTACT~kontakte HTTP/2.0|nginx SSL/TLS access|  
|2020-10-23 12:24:27|Error|CLIENT-IP|14654#0: \*1838024 open() “/var/www/vhosts/VPD-Name/DOMAIN-Name/apps/contacts/Alle Kontakte/UIDofCONTACT~kontakte” failed (2: No such file or directory)|

---

<div class="post-metadata">

**Author:** ![drewjosh](https://help.nextcloud.com/user_avatar/help.nextcloud.com/drewjosh/32/30401_2.png) [@drewjosh](https://help.nextcloud.com/u/drewjosh)\
**Post date:** [December 13, 2020, 7:50pm UTC](https://help.nextcloud.com/t/nc-20-search-for-contact-results-in-error-404-bug/95252/3 "2020-12-13T19:50:27Z")

</div>

@nextgen-networks hi there. I am running version 20.0.3 and am facing the same issue. Have you found a solution yet?

---

<div class="post-metadata">

**Author:** ![drewjosh](https://help.nextcloud.com/user_avatar/help.nextcloud.com/drewjosh/32/30401_2.png) [@drewjosh](https://help.nextcloud.com/u/drewjosh)\
**Post date:** [December 13, 2020, 8:44pm UTC](https://help.nextcloud.com/t/nc-20-search-for-contact-results-in-error-404-bug/95252/4 "2020-12-13T20:44:11Z")

</div>

In the German section of the forum I found a thread with the same problem. @regenpfeifer tracked down the issue to a problem inside the search function. I solved the problem by updating the htaccess rules. See the link below to find the thread and the quoted solution:

> [@Anzeige der Kontakte in NC 20 funktioniert nicht über die Suchfunktion](https://help.nextcloud.com/t/anzeige-der-kontakte-in-nc-20-funktioniert-nicht-uber-die-suchfunktion/94886/10):
>
> @regenpfeifer Danke für den Hinweise für “Pretty URLs”! Habe folgenden Rat befolgt und das Problem war gelöst: Htaccess Pfad ändern, dazu folgende Linie in config.php hinzufügen 'htaccess.RewriteBase' =\> '/' (Path depends on your configuration - maybe /nextcloud) Update htaccess with the occ command sudo -u apache php occ maintenance:update:htaccess On my webhosting I ran the command like this over SSH: php occ maintenance:update:htaccess Source: [https://help.nextcloud.com/t/removing-i…](https://help.nextcloud.com/t/removing-index-php-from-the-nextcloud-uri/13055/2)

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 12, 2024, 10:18am UTC](https://help.nextcloud.com/t/nc-20-search-for-contact-results-in-error-404-bug/95252/5 "2024-12-12T10:18:34Z")

</div>



---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 12, 2024, 10:18am UTC](https://help.nextcloud.com/t/nc-20-search-for-contact-results-in-error-404-bug/95252/6 "2024-12-12T10:18:35Z")

</div>


