Forum

Thread tagged as: Error, Installation, Configuration

Stuck in "Sorry, that page could not be found." with new runway installations

I'm running OSX with Mamp. I've created a database in php admin and all the installation works fine. I've added a .htaccess file in the root with

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

But when I go to https://localhost:8888/ i just get the "Sorry, that page could not be found" message. Everything was working fine before I upgraded to runway. The perch folder is intact. The master pages are there, but nothing shows up.

Does anyone have an idea?

Igor Smurawa

Igor Smurawa 0 points

  • 5 years ago

Change your .htaccess to 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]

Because you upgraded there is an extra line which you wouldn't need in a new install

https://docs.grabaperch.com/runway/installing/rewrites/

ADDED:

This line...

RewriteCond %{REQUEST_FILENAME} !-d

Checks to see if the directory exists and if it does then it will not execute the RewriteRule

This is actually a totally fresh runway installation. Does the code still apply for that?

Drew McLellan

Drew McLellan 2638 points
Perch Support

Do you have any evidence that mod_rewrite is working at all on this server?

Igor Smurawa said:

But when I go to https://localhost:8888/ i just get the "Sorry, that page could not be found" message. Everything was working fine before I upgraded to runway.

Does the code still apply for that?

Not if your pages are templates in perch/templates/pages...

Give me an idea of the structure of your site, Where are your pages? You started your post stating this was an upgrade, but since this is a new install we need to know where your at now.

Sorry Drew, both responding at same time...

Sorry if I'm being unclear. It's plain new runway installation in MAMP's htdocs folder. It only holds the Perch Runway folder. I haven't added or deleted anything.

@Drew no the modrewrite doesn't seem to be working at all.

Drew McLellan

Drew McLellan 2638 points
Perch Support

The first step is to make sure you have mod_rewrite up and running.

I've been following this tutorial. But just using mamp instead of vagrant sequel pro

Introduction to Perch Runway

Rachel Andrew

Rachel Andrew 394 points
Perch Support

If mod_rewrite isn't working in Mamp you need to speak to their support and find out how to enable it, we can't offer support for local environments.