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
1 Answer
Reset to default 0You 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
1 Answer
Reset to default 0You 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
版权声明:本文标题:migration - Moving wordpress to root folder = internal server error 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745592319a2157961.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论