Tigro Posted October 8, 2013 Posted October 8, 2013 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?
interrobang Posted October 8, 2013 Posted October 8, 2013 put this into one of your templates and you can see the admin url and login: echo '<a href="'.$pages->get(2)->url.'">this way to the admin</a>'; found here: http://processwire.com/talk/topic/4491-unable-to-log-into-processwire-website/?p=44323 4
adrian Posted October 8, 2013 Posted October 8, 2013 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.
BUCKHORN Posted October 8, 2013 Posted October 8, 2013 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>'; 3
Tigro Posted October 8, 2013 Author Posted October 8, 2013 Super. Many thanks to you. I will now write down the URL ;-)
blackeye1987 Posted October 1, 2014 Posted October 1, 2014 wire('config')->urls->admin should also do the trick. 2
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now