• Hello,
    I moved my WordPress website from a subdomain to the root folder. But when I included
    the following lines of code in the wp-confing

    define(‘WP_DEBUG’, false);
    define(‘WP_HOME’,’http://www.mywebsite.com/’);
    define(‘WP_SITEURL’,’http://www.mywebsite.com/’)
    /* That’s all, stop editing! Happy blogging. */

    It’s giving me an error in the

    /** Absolute path to the WordPress directory. */
    if ( !defined(‘ABSPATH’) )
    define(‘ABSPATH’, dirname(__FILE__) . ‘/’);
    /** Sets up WordPress vars and included files. */
    require_once(ABSPATH . ‘wp-settings.php’);
    /* Memory Limit */
    define( ‘WP_MAX_MEMORY_LIMIT’, ‘256M’ );

    What can I do?
    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • 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.

    Thread Starter fcmercuri24

    (@fcmercuri24)

    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

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘WP-Config Error’ is closed to new replies.