• Hi,

    I successfully installed wordpress on a sub directory ‘mysite.com/wordpress’. When I decided to move it to ‘mysite.com’, I copied the wordpress folder contents and put it in the root folder: ‘public.html’. I then deleted the ‘wordpress’ folder. I lost access to the dashboard so the only way of accessing it is through FTP.

    I read various posts about changing the site URL. For example, updating wp-config so I did this to include:

    define(‘WP_HOME’,’https://mysite.com’);
    define(‘WP_SITEURL’,’https://mysite.com’);

    I also ensured there is the index.php file in the folder and that the .htaccess file permissions is 755.

    Please can you help make my site live again and give me back access to the dashboard to edit further.

Viewing 5 replies - 1 through 5 (of 5 total)
  • https://codex.www.ads-software.com/Moving_WordPress

    See the section “On Your Existing Server” regarding “If you forget to change the locations…”

    Thread Starter blezard

    (@blezard)

    Thanks for your help.

    The database table wp-options seems to have the correct URL, but I haven’t tried creating a symlink, not sure how to or if I need to.

    From phpMyAdmin, I downloaded the database as a php and I can see throughout that the URLs still refer to the old path. If I find and replace all these and import back to the database, will this work?

    that’ll work fine, or if I was you I’d just do it from in phpmyadmin SQL section

    something like…

    update wp_options set option_value = replace(option_value, 'mysite.com/wordpress', 'mysite.com');

    keep an eye out and make sure you’re not adding an extra unwanted trailing slash.

    ^^ make a back up before you change anything.

    Thread Starter blezard

    (@blezard)

    Thanks, it worked a treat! Phew.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Lost access to dashboard trying to change site URL’ is closed to new replies.