• I was attempting to move WP to a subdirectory. I had changed the Site Address then saved and then the URL address and saved. I now am getting the Internal Server Error and cannot get back into the dashboard.

    Fromthegardentable.com

Viewing 6 replies - 1 through 6 (of 6 total)
  • Shoeb

    (@lovemarshall)

    You can try afresh using the reference link sent above.

    Here is how you can get the site to stable condition before you try to change the URL again.

    The admin area redirects to old url which is /wordpress/ with the error but front end is working with broken css (due to incomplete path change).

    If you have not touched the wp-config.php file yet, you should try to revert the change first by going to the database using phpmyadmin.

    Look for the table name wp_options and navigate to the siteurl and put the old url back.

    Marshall

    Thread Starter fromthegardentable

    (@fromthegardentable)

    Thank you very much for your responses!
    I have a question regarding the “Changing the Site URL”
    When adding the
    define(‘WP_HOME’,’http://example.com’);
    define(‘WP_SITEURL’,’http://example.com’);

    (with my site inserted of course)

    Where do I add it? To the bottom? and do I need any characters to the line above or leave a space between the above text?

    I am brand new to this and sincerely appreciate your help!
    -Karen

    Hello, Karen!
    Just to be safe, try putting it right below the section that looks like this:

    /**
     * For developers: WordPress debugging mode.
     *
     * Change this to true to enable the display of notices during development.
     * It is strongly recommended that plugin and theme developers use WP_DEBUG
     * in their development environments.
     */
    define('WP_DEBUG', false);

    When you are done it will look like like this:

    /**
     * For developers: WordPress debugging mode.
     *
     * Change this to true to enable the display of notices during development.
     * It is strongly recommended that plugin and theme developers use WP_DEBUG
     * in their development environments.
     */
    define('WP_DEBUG', false);
    define('WP_HOME','http://example.com');
    define('WP_SITEURL','http://example.com');

    The only problem with that, is that you can no longer change the URLs from the dashboard once it’s hard coded in wp-config.php.

    Take a look at the instructions in the Edit functions.php method before you decide which way you want to go, and then choose which way might be best for you. That method actually resets/restores the URLs to what they should be, rather than just overriding them, and you can remove the code from your themes functions.php file when you are done. Good luck!

    Thread Starter fromthegardentable

    (@fromthegardentable)

    I did the Edit functions.php and it worked beautifully!
    Thank you so much!!!!

    You’re welcome!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘500 Internal Server Error’ is closed to new replies.