[英]WordPress multisite subdirectory redirects to homepage
I currently setting up a personal website with WordPress and I'm having redirecting issues which I am not sure if it's caused by my host (currently running on a free webhost service) or if I configured the multisite incorrectly. 我目前正在使用WordPress建立个人网站,并且我正在重定向问题,我不确定这是我的主机(当前在免费的Webhost服务上运行)引起的,还是我错误地配置了多站点。
http://siteurl.com/ -> main site, for professional use http://siteurl.com/works -> part of multisite for personal use http://siteurl.com/- >专业用途的主站点http://siteurl.com/works- >个人使用的多站点的一部分
There is no problem accessing the dashboard of any multisite, and the permalinks are ok. 访问任何多站点的仪表板都没有问题,并且永久链接没问题。 The problem is that I noticed that if I go to http://siteurl.com/works , it redirects to http://siteurl.com/ automatically for the first time.
问题是我注意到,如果我转到http://siteurl.com/works ,它将第一次自动重定向到http://siteurl.com/ 。 If I go to http://siteurl.com/works for the second time, there is no problem.
如果我第二次访问http://siteurl.com/works ,则没有问题。 It happens every session I think.
我认为每个环节都会发生。
If I go to http://siteurl.com/something/archive/etc/ it still goes to http://siteurl.com/ if you access for the first time per session. 如果我访问http://siteurl.com/something/archive/etc/ ,则每次会话第一次访问时仍会访问http://siteurl.com/ 。
Another thing that may help is that I installed WordPress on a subdirectory called /wp/, which is possibly a problem with htaccess? 另一件事可能会帮助我将WordPress安装在一个名为/ wp /的子目录中,这可能是htaccess的问题?
How do I solve this issue? 我该如何解决这个问题? It seems like I am the only one encountering this issue so I have another suspicion that it's a problem with my host.
看来我是唯一遇到此问题的人,所以我又怀疑这是我的房东的问题。
您是否可以在.htaccess和wp-config.php中发送配置(没有数据库凭据),请检查它们是否配置正确。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.