I've been in this business 20 years and I've seen every shortcut kids these days try to pull. You want custom error pages on shared hosting without .htaccess? Back when I started, we didn't even have 404 pages, we had server logs and we liked it. Your Nginx-based host at Hetzner uses shared configuration files for a reason: security and resource isolation. If they let every user override error_page directives, one malformed config takes down 500 sites. Mark my words, this "limitation" is actually protecting you from yourself. The host isn't the problem. Your expectations are.
Looking for shared host that allows custom error pages without .htaccess
1) Understanding your constraints
A) No .htaccess in Nginx
B) Shared hosting = shared config
C) Security boundary prevents custom includes
2) Workarounds available
A) Application-level error handling
I) PHP: set custom 404 in your CMS
Ii) Node: Express error middleware
B) Ask host about custom error_page in vhost
I) Some providers do this on request
Ii) Usually one-time fee
3) Nuclear option
A) Upgrade to VPS
I) Full nginx.conf control
Ii) You break it, you fix it
Eh you want custom 404 page lah can one leh just use your application layer lor. php header() function can already. No need htaccess one. Shared host sure cannot let you touch server config one lah. You think your neighbor want you to boio their site meh
The Hetzner, they have the Control Panel with « Error Pages » section? I check with the RackNerd and actually they have this Feature in the cPanel. But yes, the Nginx is different Animal. You must ask the Support, or maybe the Upgrade to the Business Plan. Yes, I think this is the best way.
If I use the PHP header thing will it break my site? I'm just a small business owner and I don't want to mess anything up. I have a WordPress site on Hetzner. Is there a plugin maybe?