Redirect Page not found.

Permalink
how can i redirect 'page not found' error to 'home page'?

There is a dead link that has been delete, search engine still show it, and go to that 'page not found', i want to redirect it..


big thanks bro...

fastcrash
 
jaredquinn replied on at Permalink Reply
jaredquinn
You can customise the single page "page_not_found" to display more than just the error message, and can specify it's theme using the site config.

However if you wish to redirect a deleted page's URL to somewhere else, just edit the new target's properties and set the old canonical name in the target's aliases.

Jared
fastcrash replied on at Permalink Reply
fastcrash
hi jaredquinn, thank for the reply.
i will use the first solution.
You can customise the single page "page_not_found" to display more than just
the error message, and can specify it's theme using the site config.


i found page_not_found.php on /concrete/single page, is that you mean i must modify?

thanks.
jbx replied on at Permalink Best Answer Reply
jbx
Yes, you need to do 2 things to modify this page.

1) Copy it out of the concrete directory to /single_pages and edit it there (so you don't overwrite the core).

2) If you want to apply your own theme to it, then you must add the theme and page to /config/site_theme_paths.php. Instructions are in the file.

Jon
fastcrash replied on at Permalink Reply
fastcrash
thanks jbx i try it. :)
brianleeklassen replied on at Permalink Reply
brianleeklassen
I had the same problem as Follow Me. I followed the "best answer" recommendation of Jared Quinn. Worked like a charm. As a newbie I thought the 'page not found' error might mean I had broken something. I had accomplished what I had desired to do--redirect the page--but didn't know that I needed to edit the page_not_found php in order to announce that a page was under construction. Successfully negotiating this gave me a profound feeling of accomplishment. Thanks, Jared!
SAA replied on at Permalink Reply
SAA
Hi,

I want to redirect visitors from "the page not found" page to the homepage. But I don't know where I can find the "new target" property, after having copied the page into the single pages folder.

Glad for advice,

thanks in advance,

Lovic
lackadaize replied on at Permalink Reply
lackadaize
I'm also trying to figure this out. I have an additional thread I just started athttp://www.concrete5.org/index.php?cID=573948... incase anyone answers. Did anyone find a solution to this?
lackadaize replied on at Permalink Reply
lackadaize
To anyone looking for a solution to this.... If you follow the link I left in the previous post it explains how I got around this problem.