admin管理员组

文章数量:1023773

I moved my Wordpress contents to the root folder. (I read somewhere that moving the wordpress installation can be done by simply moving the directory contents.) It works almost fine, with the notable exception of being unable to run the administration. It tries to find it in the original subdirectory, then (not finding it) throws "internal server error".

Do I need to change an item in the database or something?

I moved my Wordpress contents to the root folder. (I read somewhere that moving the wordpress installation can be done by simply moving the directory contents.) It works almost fine, with the notable exception of being unable to run the administration. It tries to find it in the original subdirectory, then (not finding it) throws "internal server error".

Do I need to change an item in the database or something?

Share Improve this question edited Apr 13, 2019 at 19:57 fuxia 107k39 gold badges255 silver badges459 bronze badges asked Apr 13, 2019 at 11:02 CoatlCoatl 1
  • Oh, I found the item it in the "wp-options" table in the databse. I changed the original folder to the root folder and all seems to be working now. I suppose, it is all I need to do? – Coatl Commented Apr 13, 2019 at 11:13
Add a comment  | 

1 Answer 1

Reset to default 0

You should look at the Codex (a great place to find answers) for information about moving a WordPress site. See https://codex.wordpress/Moving_WordPress . Follow those steps.

You'll find (among your tasks) that you need to change the two URL entries in the wp-options table (which you already discovered), and then do a search/replace to change the old URL to the new URL. (Media, for example, stores the complete URL in the item's database entry.)

I use the "Better Search and Replace" plugin to do that, but there are other options.

You may also need to look at your htaccess file when you are done. And, of course, make a backup of your database.

I moved my Wordpress contents to the root folder. (I read somewhere that moving the wordpress installation can be done by simply moving the directory contents.) It works almost fine, with the notable exception of being unable to run the administration. It tries to find it in the original subdirectory, then (not finding it) throws "internal server error".

Do I need to change an item in the database or something?

I moved my Wordpress contents to the root folder. (I read somewhere that moving the wordpress installation can be done by simply moving the directory contents.) It works almost fine, with the notable exception of being unable to run the administration. It tries to find it in the original subdirectory, then (not finding it) throws "internal server error".

Do I need to change an item in the database or something?

Share Improve this question edited Apr 13, 2019 at 19:57 fuxia 107k39 gold badges255 silver badges459 bronze badges asked Apr 13, 2019 at 11:02 CoatlCoatl 1
  • Oh, I found the item it in the "wp-options" table in the databse. I changed the original folder to the root folder and all seems to be working now. I suppose, it is all I need to do? – Coatl Commented Apr 13, 2019 at 11:13
Add a comment  | 

1 Answer 1

Reset to default 0

You should look at the Codex (a great place to find answers) for information about moving a WordPress site. See https://codex.wordpress/Moving_WordPress . Follow those steps.

You'll find (among your tasks) that you need to change the two URL entries in the wp-options table (which you already discovered), and then do a search/replace to change the old URL to the new URL. (Media, for example, stores the complete URL in the item's database entry.)

I use the "Better Search and Replace" plugin to do that, but there are other options.

You may also need to look at your htaccess file when you are done. And, of course, make a backup of your database.

本文标签: migrationMoving wordpress to root folderinternal server error