admin管理员组文章数量:1122846
I have tried to just copy the whole root folder into a subdirectory. I understand the .htaccess file has to be changed. But can't get it to work right.
Is it something more than changing the htaccess file I'll have to do to make this possible?
As I said in the question, I want to use the same database. So I can't change any URL's in the database.
Edit: I have figured out that the site actually is going in to the directory, but then is redirecting back to the root again. I changed the site's url with WP_SITEURL
and WP_HOME
in wp-config.php-file. But nothing happens, the site is still redirecting back.
I have tried to just copy the whole root folder into a subdirectory. I understand the .htaccess file has to be changed. But can't get it to work right.
Is it something more than changing the htaccess file I'll have to do to make this possible?
As I said in the question, I want to use the same database. So I can't change any URL's in the database.
Edit: I have figured out that the site actually is going in to the directory, but then is redirecting back to the root again. I changed the site's url with WP_SITEURL
and WP_HOME
in wp-config.php-file. But nothing happens, the site is still redirecting back.
1 Answer
Reset to default 0http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory#Using_a_pre-existing_subdirectory_install
You have to COPY the index.php ot to the root and edit it to add the sub dir path.
本文标签: theme developmentDuplicate WordPress site to subdirectory but use same db
版权声明:本文标题:theme development - Duplicate WordPress site to subdirectory but use same db? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736287211a1927831.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论