How to change the "404 Not Found" page for "410 Gone". ?

Get help with installation and running phpBB 3.2.x here. Please do not post bug reports, feature requests, or extension related questions here.
Nocol333
Registered User
Posts: 29
Joined: Mon Mar 21, 2016 5:15 am

How to change the "404 Not Found" page for "410 Gone". ?

Post by Nocol333 »

How to change the "404 Not Found" page for "410 Gone". ?
User avatar
janus_zonstraal
Registered User
Posts: 5437
Joined: Sat Aug 30, 2014 1:30 pm

Re: How to change the "404 Not Found" page for "410 Gone". ?

Post by janus_zonstraal »

In your .htaccess place:

Code: Select all

Redirect 410 /the_notfoundpage.php
Additional you can make a 410 error page and redirect to that page

Code: Select all

ErrorDocument 410 /410-error-page.html
But in my opinion it is better to redirect the 404 to your homepage

Code: Select all

Redirect 301 t/he_notfoundpage.php  https://www.yourboard.com/
Sorry! My English is bat ;) !!!
Nocol333
Registered User
Posts: 29
Joined: Mon Mar 21, 2016 5:15 am

Re: How to change the "404 Not Found" page for "410 Gone". ?

Post by Nocol333 »

I meant it so that instead of page 404 the page 410 appeared
User avatar
janus_zonstraal
Registered User
Posts: 5437
Joined: Sat Aug 30, 2014 1:30 pm

Re: How to change the "404 Not Found" page for "410 Gone". ?

Post by janus_zonstraal »

Yes I understand that, and give the answer on your question.
Sorry! My English is bat ;) !!!
Nocol333
Registered User
Posts: 29
Joined: Mon Mar 21, 2016 5:15 am

Re: How to change the "404 Not Found" page for "410 Gone". ?

Post by Nocol333 »

It does not work

RewriteEngine On
Redirect 410 /the_notfoundpage.php
ErrorDocument 410 /410-error-page.html
User avatar
Mick
Support Team Member
Support Team Member
Posts: 23533
Joined: Fri Aug 29, 2008 9:49 am

Re: How to change the "404 Not Found" page for "410 Gone". ?

Post by Mick »

Why do you want to do this, they are essentially different errors?
  • "The more connected we get the more alone we become" - Kyle Broflovski©
  • There will be legions of cricket lovers of both genders through whose lips the abomination ‘BATTER’ will never pass so long as we live” - Simon Heffer - Telegraph
Nocol333
Registered User
Posts: 29
Joined: Mon Mar 21, 2016 5:15 am

Re: How to change the "404 Not Found" page for "410 Gone". ?

Post by Nocol333 »

Mick wrote:
Tue Mar 06, 2018 9:26 am
Why do you want to do this, they are essentially different errors?

Im have a large number of deleted pages indexed by the search engine. SEO.

410 good, 404 no good SEO.
User avatar
Mick
Support Team Member
Support Team Member
Posts: 23533
Joined: Fri Aug 29, 2008 9:49 am

Re: How to change the "404 Not Found" page for "410 Gone". ?

Post by Mick »

Nocol333 wrote:
Tue Mar 06, 2018 9:57 am
410 good, 404 no good SEO.
But, if you have a 404 and report a 410 how can that be good, you’re skirting round the issue?

Can you post a link to your board please?
  • "The more connected we get the more alone we become" - Kyle Broflovski©
  • There will be legions of cricket lovers of both genders through whose lips the abomination ‘BATTER’ will never pass so long as we live” - Simon Heffer - Telegraph
Nocol333
Registered User
Posts: 29
Joined: Mon Mar 21, 2016 5:15 am

Re: How to change the "404 Not Found" page for "410 Gone". ?

Post by Nocol333 »

janus_zonstraal wrote:
Tue Mar 06, 2018 7:09 am
In your .htaccess place:

Code: Select all

Redirect 410 /the_notfoundpage.php
Additional you can make a 410 error page and redirect to that page

Code: Select all

ErrorDocument 410 /410-error-page.html
But in my opinion it is better to redirect the 404 to your homepage

Code: Select all

Redirect 301 t/he_notfoundpage.php  https://www.yourboard.com/

I do not have the_notfoundpage.php page on the server
User avatar
Mick
Support Team Member
Support Team Member
Posts: 23533
Joined: Fri Aug 29, 2008 9:49 am

Re: How to change the "404 Not Found" page for "410 Gone". ?

Post by Mick »

You have to make it.
  • "The more connected we get the more alone we become" - Kyle Broflovski©
  • There will be legions of cricket lovers of both genders through whose lips the abomination ‘BATTER’ will never pass so long as we live” - Simon Heffer - Telegraph
Nocol333
Registered User
Posts: 29
Joined: Mon Mar 21, 2016 5:15 am

Re: How to change the "404 Not Found" page for "410 Gone". ?

Post by Nocol333 »

Mick wrote:
Tue Mar 06, 2018 12:50 pm
You have to make it.
OK. And what folder do I upload? Root? or Styles?
User avatar
Mick
Support Team Member
Support Team Member
Posts: 23533
Joined: Fri Aug 29, 2008 9:49 am

Re: How to change the "404 Not Found" page for "410 Gone". ?

Post by Mick »

If it’s PHP I guess it would go in the root with the other PHP files.
  • "The more connected we get the more alone we become" - Kyle Broflovski©
  • There will be legions of cricket lovers of both genders through whose lips the abomination ‘BATTER’ will never pass so long as we live” - Simon Heffer - Telegraph
Nocol333
Registered User
Posts: 29
Joined: Mon Mar 21, 2016 5:15 am

Re: How to change the "404 Not Found" page for "410 Gone". ?

Post by Nocol333 »

It does not work
User avatar
janus_zonstraal
Registered User
Posts: 5437
Joined: Sat Aug 30, 2014 1:30 pm

Re: How to change the "404 Not Found" page for "410 Gone". ?

Post by janus_zonstraal »

Tell me which page gives the 404 error.

Or do you main in general?
Then make your own error page.
See
https://www.htmlgoodies.com/beyond/refe ... r-Page.htm
And place them in the root of your server and make the redirect in the htaccess
Redirect 410 /the_notfoundpage.php
Sorry! My English is bat ;) !!!
Nocol333
Registered User
Posts: 29
Joined: Mon Mar 21, 2016 5:15 am

Re: How to change the "404 Not Found" page for "410 Gone". ?

Post by Nocol333 »

Já to prostě anglicky nechápu co mám udělat. Chtěla bych aby se místo stránky 404 Page no found, zobrazovalo Error 410 Gone.
Post Reply

Return to “[3.2.x] Support Forum”