define('WP_DEBUG',false);
// Without and slash
define('WP_HOME','http://www.mysite.com');
define('WP_SITEURL','http://www.mysite.com')
Removing your /my-subdir intorno hataccess.
Example moving WordPress from root to my-subdir Moving WordPress
That is written here (my code), like I wrote you. Remove the three define probably you have inserted some superfluous character and it gives you error … If with my advice everything works do not install, delete or create anything because I write to you what to do in the next step.
Thank you for your answer. I am moving the website from a subdomain to a root, you mentioned a subdirectory, the procedure should be different, am I wrong?
Don’t read the link but only my code … it’s a pleasure to be useful.
Dear @autotutorial I just moved my new web design from sub-directory into the public_html root, the front page of the site is working fine, the login page works fine, i can write my user name and password, however the site doesn’t let me go to the admin dashboard.. the following error appears “The site is experiencing technical difficulties. Please check your site admin email inbox for instructions.” Please if you could help, as it is an issue of great importance, the site is public already and none of the urls are not redirected to the new site.
I really would appreciate any sorts of help
Check your file .htaccess root and change into root folder.
Bad example for moving from directory to root (htaccess wordpress BASIC, not multisite):
# BEGIN WordPress
RewriteEngine On
RewriteBase /wordpress/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wordpress/index.php [L]
# END WordPress
Good: remove folder wordpress/ 😉
# BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress
Add this constant into wp-config.php Before ABSPATH
define('WP_DEBUG',false);
// Without and slash
define('WP_HOME','http://www.mysite.com');
define('WP_SITEURL','http://www.mysite.com');
after making backups, use a plugin or php script to change the old path in the new way.
Back-up
Search and replace