我想将网站从http://www.example.com/demo .... 移到http://www.example.com
在不改变任何东西的情况下如何可能意味着 pages-posts-images
Find centralized, trusted content and collaborate around the technologies you use most.
Learn moreTeams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more我想将网站从http://www.example.com/demo .... 移到http://www.example.com
在不改变任何东西的情况下如何可能意味着 pages-posts-images
如果您已经安装了 Wordpress,http://www.example.com/demo
现在想在 访问它, Wordpress Codex 中的http://www.example.com
这篇文章将为您提供帮助。您将分几步完成。
将此添加到您的.htaccess
文件中:
Redirect /demo http://www.example.com
并将其添加到您index.php
的顶级目录中的文件中:
<?php
include '/demo';
?>