Home>Support>Cloning the Vantage theme custom 404 file to create custom 410 file

Cloning the Vantage theme custom 404 file to create custom 410 file

By GeorgeL, 4 years ago. Last reply by Alex S, 4 years ago.
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

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 4 years, 9 months ago Alex S
    Hi, I Work Here

    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

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More