This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

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

5 years ago · Last reply by Alex S 5 years ago

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.

Need fast email support? Get SiteOrigin Premium

Replies

1
  1. Alex S Staff 5 years, 4 months ago

    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.

Have a different question or issue?

Start New Thread