We are transitioning over to a new forum platform. Please post new issues there. Existing threads will be dealt with here unless you choose to move them over. Visit the new forum


Thread tagged as: Problem

Moving page results in 404


I'm moved pages around in Perch before, but for some reason I'm having an issue when I'm moving a page into a folder.

Steps taken are;

Created a folder called treatments Go into page and page options Location > added /treatments/ at the start of the path url, ticked Move the page to this location and clicked submit

The page moves in my file directory as expected, but trying to view the file either on the site or through View Page brings up a 404 error.

Have I missed something?


Perch: 2.8.29, PHP: 5.4.42, MySQL: mysqlnd 5.0.10 - 20111026 - $Id: c85105d7c6f7d70d609bb4c000257868a40840ab $, with PDO
Server OS: Darwin, cgi-fcgi
Installed apps: content (2.8.29), assets (2.8.29), categories (2.8.29), perch_blog (5.0)
App runtimes: <?php $apps_list = array( 'content', 'categories', 'perch_blog', );
PERCH_PATH: /Volumes/FFD Web Work/Zenith/dentist website/root/perch
PERCH_CORE: /Volumes/FFD Web Work/Zenith/dentist website/root/perch/core
PERCH_RESFILEPATH: /Volumes/FFD Web Work/Zenith/dentist website/root/perch/resources
Image manipulation: GD
PHP limits: Max upload 32M, Max POST 32M, Memory: 128M, Total max file upload: 32M
F1: 2edba60ed1f613d6dd804feb202456a2
Resource folder writeable: Yes
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
REQUEST_URI: /perch/core/settings/diagnostics/
DOCUMENT_ROOT: /Volumes/FFD Web Work/Zenith/dentist website/root
HTTP_HOST: zenith-dentist
Wayne Hooper

Wayne Hooper 6 points

  • 4 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Is the file now in the location you're expecting?

Yes. Just found the issue... my rewrites. I was using an older rewrite to remove .php from my links in the nav, switching it around to this;

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.+)$ $1.php [L,QSA]

fixes it.