Hey guys,
1) So I made a 404.php and placed it in the root of my site.
2) It appears that even without uncommenting the relevant line in the htaccess file, the 404 shows up, which is cool
(though the docs say you should uncomment this line: #ErrorDocument 404 /404.php)
3) However, if I have the 404 as a couch template, and I click on some random url that generates a 404, it takes me to the admin login page... Is this because of url paths?
I have pasted the content of my 404 page below, I have renamed my couch folder to cms.
Any feedback would be muchos appreciated!
Karen
<?php require_once( 'cms/cms.php' ); ?>
<!DOCTYPE HTML>
<html lang="en">
<head>
<cms:embed "head.html" />
<cms:embed "css.html" />
<cms:embed "js.html" />
</head>
<body>
<div class="wrap">
<cms:embed "header.html" />
<main class="main">
<div class="block-layout block-page">
<div class="block-medium center-element">
<div class="page-content">
<h1>Whoops! Page not found!</h1>
</div> <!-- /page-content -->
</div> <!-- /block-medium -->
</div> <!-- /block-page -->
</main>
</div> <!--wrap-->
<cms:embed "footer.html" />
<noscript><strong>You need Javascript to run this page</strong></noscript>
</body>
</html>
<?php COUCH::invoke(); ?>
1) So I made a 404.php and placed it in the root of my site.
2) It appears that even without uncommenting the relevant line in the htaccess file, the 404 shows up, which is cool

3) However, if I have the 404 as a couch template, and I click on some random url that generates a 404, it takes me to the admin login page... Is this because of url paths?
I have pasted the content of my 404 page below, I have renamed my couch folder to cms.
Any feedback would be muchos appreciated!
Karen
<?php require_once( 'cms/cms.php' ); ?>
<!DOCTYPE HTML>
<html lang="en">
<head>
<cms:embed "head.html" />
<cms:embed "css.html" />
<cms:embed "js.html" />
</head>
<body>
<div class="wrap">
<cms:embed "header.html" />
<main class="main">
<div class="block-layout block-page">
<div class="block-medium center-element">
<div class="page-content">
<h1>Whoops! Page not found!</h1>
</div> <!-- /page-content -->
</div> <!-- /block-medium -->
</div> <!-- /block-page -->
</main>
</div> <!--wrap-->
<cms:embed "footer.html" />
<noscript><strong>You need Javascript to run this page</strong></noscript>
</body>
</html>
<?php COUCH::invoke(); ?>