Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].
I really like the custom 404 page that comes with your Vantage theme. Could you assist me with cloning this file and using it for 410 Gone errors?
I copied the Vantage 404.php file and created a file in public_html called My-Custom-410.php.
I need help with the following:
1. Is this what I need in the .htaccess file?: ErrorDocument 410 /My-Custom-410.php
2. How do I modify the php file to send the 410 response code instead of the 404?
Thanks
Hi George,
1. That’s the correct code to point to a specific file.
Copying the 404.php file directly won’t work as the file makes calls to files that aren’t available outside of the theme directory or WordPress. You’re best bet would be to create a HTML version fo the page by using a HTML scraper or saving the page using your browser to save the page. Here are some instructions on how to do this. Once saved, upload the file to your website and adjust it as needed.
2. The server will automatically do this due to 1.
Kind regards,
Alex