Creating a custom 403 or not found page
You may need to link to it using an absolute path:
You're right it should be a simple matter of assigning it via the admin section.
It's what most good cms packages do.
Having to edit templates and code blocks is insane.
And editing a template is "insane"?
You have to be joking mdg, you drama queen. Its not very difficult to change, maybe the only oversight is that the core team hasn't yet documented how to do it.
If it's not working, it might be that your theme doesn't have a view.php file, or that you didn't create the new single_pages/page_not_found.php file.
Also, if you go to your site's dashboard and click "Sitemap", you should see "Page Not Found" in the list, and you should be able to edit it (although this doesn't allow you to change the actual text of the "page not found" message).
Hope that helps.
However when you have any page that has index.php/asdf is when the 404 shows.
What is going on with this? I changed all files from your cookbook but its still not looking for the right file. I'm running the latest 188.8.131.52 version.
It seems as though the only way for a simple site editor to change their not found / forbidden pages is to hire someone who knows how to and is comfortable editing code, is that correct? If so, why? Why can the basic choice of site-wide theme not be applied to these pages? As it is, the pages are next-to-useless, since all modern browsers do just fine displaying their own 404 pages, and the supplied "theme" applied to c5's 40x pages look nothing at all like the rest of the site...
If you can enter "Edit Mode" on the page, but don't see any editable areas to click on, then that is because you don't have any editable areas declared in your theme's view.php file.
As for your other questions (about how difficult it is to change things without hiring someone, and why the 404 page is set up the way it is)... I unfortunately don't know the answer because I didn't build this system (I just use it a lot). All I can offer is a sympathetic ear because I have definitely been in your situation many times, and it is very frustrating indeed.
My view.php for the active template on my site is simply
<?php print $innerContent; ?>
Try looking at any errors that appear in the "console" of your browser's web developer tools.
customization except to turn on pretty urls, and the 404 and 403 pages have
no edit/dashboard bar. There are no errors in the console. These pages are
obviously not intended for site administrators to be able to change
anything, including the theme.
I am hoping you can help me. Any expired pages on my site do not show the "Page not found" that my developer modified. Do you know why this would be? Instead, the guest sees the main login page when they try to view an expired page. I have set the permissions so that Guest can view the "Page not found". Any information would be helpful.
Cpanel has custom error pages, I create a generic custom 404.shtml. In the 404.shtml I place
<meta http-equiv="Refresh" content="0; URL=http://www.mydomain.com/404">
in between the head section.
Then in C5 I create a page called "404" matching my layout/theme.
In the page properties under header select Meta Title and type 404 Page Not Found
Then under Navigation and Indexing select Exclude From Search Index
Now all my 404 pages are redirected to a custom 404 page.
My new custom 404 page view html source=
<head> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <title>404 Page Not Found</title> <meta name="description" content="404" /> <meta name="robots" content="noindex" /> <meta name="generator" content="concrete5 - 184.108.40.206" />
Here is my generic 404.shtml with redirect
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> <title>404 File Not Found</title> <meta name="robots" content="noindex,noarchive" /> <meta http-equiv="Content-type" content="text/html;charset=ISO-8859-1" /> <meta http-equiv="Content-Style-Type" content="text/css" /> <meta http-equiv="Refresh" content="0; URL=http://www.mydomain.com"> </head> <body> <h1>404 File Not Found</h1> <p>The page you requested could not be found on this site. It is possible that the document was relocated or that the address was entered incorrectly.</p> <ul> <li>