WordPress 目录和服务器组织
我有一个用于特定 WordPress 项目的专用 IP 和服务器空间(例如:555.555.555.55),并且在该 IP 的根文件夹中,我在它自己的目录(555.555.555.55/wordpress)中安装了 WordPress,因为我不想将所有这些 WP 文件挤满我的根文件夹。
我准备将我的 WordPress 安装完全移动到根文件夹,以便可以使用 IP 进行查看,而无需 /wordpress 扩展名。是否有更简单的方法将我的 IP 重定向到 WordPress 文件夹而不显示 /wordpress 扩展名?我打算通过 .htaccess 文件将任何请求重定向到 IP 以转到 WP 文件夹,但如果用户浏览该网站,URL 仍会显示 /wordpress 扩展名。
I have a dedicated IP and server space for a specific WordPress project (ex: 555.555.555.55) and within my root folder for that IP I have a WordPress install within it's own directory (555.555.555.55/wordpress) because I didn't want to crowd my root folder with all those WP files.
I'm about ready to move my WordPress install completely to the root folder so it's viewable with the IP and without the /wordpress extension.. Is there an easier way to redirect my IP to the WordPress folder without showing the /wordpress extension? I was going to work through the .htaccess file to redirect any requests to the IP to go to the WP folder but if the user navigated through the site, the URL would still show the /wordpress extension.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请参阅 http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory
See http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory