Jump to content
Tigro

Forgot admin URL

Recommended Posts

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?

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Super. Many thanks to you. I will now write down the URL ;-)

Share this post


Link to post
Share on other sites

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...