最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

migration - Moving wordpress to root folder = internal server error

programmeradmin1浏览0评论

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.

发布评论

评论列表(0)

  1. 暂无评论