404 page: "Home" button has wrong link to "home"

Hi!
My WP is installed in a subdirectory, like www.domain.com/wp but is set up to run under www.domain.com

The ILLDY 404 page links to the subdirectory - when the “Home” button is clicked you land on the - you guessed it - 404 page because the “page” www.domain.com/wp does not exist …

The problem is line 29 of 404.php:
echo site_url();

should be
echo home_url();

cf.
https://codex.wordpress.org/Function_Reference/site_url
https://codex.wordpress.org/Function_Reference/home_url

For now, I solved this by placing a modified 404.php into the child theme folder.

Cheers,
Alex

Hello Alex

Ok, thank you for sharing experience :slight_smile: