Forum

Thread tagged as: Question, Error, Runway

page not found is not returning 404.php in runway.

First help request on here, hope i've provided sufficient information.

i've set up a 404 page at /404.php and updated the .htaccess to include:

ErrorDocument 404 /404.php

but runway is doing something else, and feeding a blank page for any page that doesn't exist.

eg (this page does not exist) https://ashleyjaykitchens.co.uk/edfwqa

my .htaccess includes the following:

 # Perch Runway 
RewriteEngine On 
RewriteCond %{REQUEST_URI} !^/perch 
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* /perch/core/runway/start.php [L] 

and a lot of redirects from the clients old site. but they all refer to .html files and have tested fine.

Dev tools has confirmed that the server is responding 404, but just not feeding the page for some reason, what do i need to do to fix this?

Thanks in advance.

Steve Forbes

Steve Forbes 0 points

  • 5 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

All incoming requests are routed to the Runway start.php by the rewrite rules you have there. There won't be any bare 404s, because Runway will pick those up and route them to the errors/404.php master page.

Are you able to adapt your plans to use that master page?

Sorted. fantastic. thanks drew.