Wordpress/Joomla 共享 IP、URL 而非根 - 最佳开发工作流程?
我们有一个用于新网站开发的 VPS,并计划为每个新网站/帐户使用唯一的 IP 地址,以便在开发过程中所有链接、URL 等都将与开发过程中的根(IP 地址)相关,而不是相对于根(IP 地址)上线时需要更改(重定向域)。但现在我们的主机不允许我们购买新的 IP 地址(根据全球范围内的短缺情况)。
因此,现在所有新站点都将位于: http://shared.ip.add.ress/~ cpaneaccount/。这意味着在开发过程中,网站不会像我们一直在使用的根 URL。
在开发相对复杂的 CMS 解决方案时,最好的工作流程是什么,我们需要能够自信地设置和测试所有链接、SEF URL、插件、组件等,而不必担心域被破坏时事情会变得混乱。切换(网站上线)?
我们是否需要在 .htaccess 文件中执行某种全局重定向?
有任何特定于 WordPress 和/或 Joomla 安装的修改或策略吗?
谢谢!
we have a VPS for new site development, and were planning on using unique IP addresses for each new site/account so that while in development all links, URLs, etc. would be relative to the root (IP address) while in development and not need to change when going live (redirecting domain). But now our host won't allow us to purchase new IP addresses (according to worldwide shortage).
So now all new sites will be located at: http://shared.ip.add.ress/~cpanelaccount/. That means that while in development the sites are not using a root URL as we have been doing.
What is the best workflow while in development for relatively complex CMS solutions where we need to be able to confidently setup and test all links, SEF URLs, plugins, components, etc. without worrying about things getting messed up when the domain is switched (site goes live)?
Do we need to do some sort of global redirect in the .htaccess file?
Any modifications or strategies specific to Wordpress and/or Joomla installs?
THANKS!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我必须安装最新的 WP 才能确定,但至少对于 Joomla,如果安装在根目录或子目录中,这是相当无关紧要的。对于 Joomla,从子目录移动到根目录时只需要进行一项更改。如果您启用了核心 SEF,则需要更改 .htaccess 以反映正确的安装目录。否则,根本不需要进行任何更改。我很确定 WP 也同样容易移动,但我必须看看,自从我移动 WP 网站以来已经有一段时间了。
I'd have to do an install of the latest WP to be sure, but at least with Joomla it is fairly irrelevant if you install in the root or a subdirectory. In the case of Joomla, there is only one change that needs to be made when moving from a subdirectory to the root. You'd need to change .htaccess to reflect the correct installation directory if you have enabled core SEF. Otherwise, there are no changes that need to be made at all. I am pretty sure WP is just as easy to move, but I'd have to look, it's been a while since I moved a WP site.