Forum

Thread tagged as: Problem, Configuration

Wrong login path

While copying from localhost to remote host I just realized that my loginpath was wrong. I had define('PERCH_LOGINPATH', 'project-folder-name/perch'); instead of define('PERCH_LOGINPATH', '/perch'); Any idea why I got this? Thanks a lot!

Martin Stettler

Martin Stettler 0 points

  • 6 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Did you develop the site in a subfolder? That would do it.

No. It's weird, because on my first project I didn't have that... When I set up the development server I have of course the following path: https://localhost:8888/project-folder-name/perch/ Therefore it writes in the config.php file «define('PERCH_LOGINPATH', 'project-folder-name/perch');» Any idea?

Drew McLellan

Drew McLellan 2638 points
Perch Support

You should point your server to the root of your website - then you don't end up with different paths between development and live environments.

I work with MAMP for development. As I have different projects running, I need for each a folder in the htdocs-Folder of MAMP to get it work, right?

Drew McLellan

Drew McLellan 2638 points
Perch Support

Maybe time to look at MAMP Pro. That offers you easy configuration of multiple sites.

That's it! Thanx