can I forward the "page not found" to other page?

Permalink
as topic?

 
jbx replied on at Permalink Reply
jbx
http://www.mcanerin.com/EN/articles/301-redirect-404-error.asp
SVijay replied on at Permalink Reply
SVijay
Hi Panupat,

You need to create a new single page, in which you want to forward page not found.

1. copy root/concrete/single_pages/page_not_found.php

2. Change the file name as you want and alter as you want, for instance my_page_not_found.php

3. paste it in single_pages/my_page_not_found.php

4. Go to pages and themes --> single pages and add a single page named my_page_not_found

For more details visit the link -
http://www.concrete5.org/help/building_with_concrete5/developers/mv...
Panupat replied on at Permalink Reply
Once I added the new single-page, how can I make it the default "page not found" replacing the old one?

jbx - I'm talking about concrete's own error page, not the one generated by the server. Like this one

http://all-final.com/v6/index.php?cID=13...
SVijay replied on at Permalink Reply
SVijay
Hi,

How about a screen shot?
jbx replied on at Permalink Reply
jbx
Ok, so am I right in thinking that you don't actually want to forward the page-not-found to another page at all, you just want to change the look of the page that concrete supply? Make it match your theme and have some custom text for instance?

If this is the case, then as Vijay suggested, just copy the /concrete/single_pages/page_not_found.php file into your /single_pages directory and modify it there. Also, if you look inside config/site_theme_paths.php and add
$v = View::getInstance();
$v->setThemeByPath('/page_not_found', "yourtheme");

then it will use your theme and not look like a C5 page.

Does that help?

Jon