Jump to content

Recommended Posts

Posted
Hello,

I accidentally forgot my admin login URL. :-/ Es ist nicht die Standard URL "processwire" oder "admin"

Can I change the URL in the database or in a config file?

Posted

Or, if you have access to PHPMyAdmin (or similar), you can look in the pages table for the "name" of the row with an "id" of 2

PS I think you can safely change the "name" field to whatever you want which will of course change the URL.

Posted

I'm not a fan of hard-coding id's, obviously for this purpose it's fine, but for app building, I use the config var in case the page id ever changes (if a new version of PW is released and the admin id is now 3, your code won't break).

echo '<a href="'.$pages->get($config->adminRootPageID)->url.'">this way to the admin</a>';
  • Like 3
  • 11 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...