问题描述
我的情况如下:
- 我在主域中有一个新网站。例如:mywebsite.com。
- 我的旧投资组合位于旧的子域:Portfolio.mywebsite.com。
- 所有投资组合项目都可以是
- 因此,可以在Portfolio.mywebsite.com/item-1等上找到投资组合项目1。
- 该子域正在运行启用了多站点的WordPress。
- 该子域和主域由不同的Web主机托管。
- I've have a new website at my main domain. Example: mywebsite.com.
- My old portfolio is located at an old sub domain: portfolio.mywebsite.com.
- All portfolio items can be found in a sub directory at the portfolio site.
- So portfolio item 1 can be found at portfolio.mywebsite.com/item-1, etc.
- The sub domain is running WordPress with Multisite enabled.
- The sub domain and main domain are hosted by different web hosts.
我想将所有流量从Portfolio.mywebsite.com重定向到mywebsite.com/portfolio。但是我不想从投资组合项目中重定向流量,因为我还没有时间建立新的投资组合。因此,我还需要能够访问子域上的wp-admin文件夹。
I want to redirect all traffic from portfolio.mywebsite.com to mywebsite.com/portfolio. But I don't want to redirect traffic from the portfolio items, since I don't have time to build a new portfolio yet. Therefor I also need to be able to acces the wp-admin folder on the sub domain.
简而言之:如何将流量从Portfolio.mywebsite.com重定向到mywebsite .com / portfolio,而不会影响所有其他网址? :)
In short: How do I redirect traffic from portfolio.mywebsite.com to mywebsite.com/portfolio without effecting all the other urls? :)
最诚挚的问候,
Michael
推荐答案
如果我很了解您的问题,我认为您可以使用简单的插件进行重定向,例如
If i understand well your problem i think that you can use a simple plugin for redirection like Safe Redirect Manager
使用非常简单。
这篇关于将子域重定向到主域,而不会影响带有.htaccess的子文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!