I made a mistake and changed the SETTINGS / WordPress Address (URL) in WordPress and now i cant get into the back-end anymore.
The problem is that, i have a site on a “dev” folder so the address was “mySite.com/dev”, and this is where WordPress was(is). I mistakenly removed the “dev” and now its the normal “mySite.com”.
I need to put everything back but since i removed the “/dev”, WordPress always redirects me to the main site and i dont have access to the back end anymore.
How can i restore it so i can access my WordPress dev site on the dev folder?
Thanks in advanced.
The simplest way to do this (especially if you aren’t comfortable in phpMyAdmin) is to FTP in and edit your
wp-config.phpfile in the base WP directory (e.g. mysite.com/dev) and add these lines:Next time you visit the site it will automatically change the settings. Note that this will cause the associated fields in the admin panel to be grayed out, so when you want to change the URL in the future you will need to either update or delete these lines from the wp-config file.