简体   繁体   English

Wordpress 子域 Multisite 仅在一个子域上给出 404 错误?

[英]Wordpress subdomains Multisite gives a 404 error only on one subdomain?

Looking forward y'all have an excellent day期待你们都有美好的一天

I'm having a kind of strange issue, I'm developing a Wordpress multisite with subdomains and I have no issue with creating new sites in every but one subdomain and I can't figure out why.我遇到了一个奇怪的问题,我正在开发一个带有子域的 Wordpress 多站点,我在除一个子域之外的每个子域中创建新站点都没有问题,我不知道为什么。

My wordpress installation is on here: evoco.io and for some reason when I create the new site "marketing.evoco.io" it wont work:我的 wordpress 安装在这里:evoco.io 并且由于某种原因,当我创建新站点“marketing.evoco.io”时它不会工作: Wordpress 多站点添加站点

Marketing.evoco.io 上的 404 错误

It shows a 404 page from TMD Hosting.它显示了来自 TMD Hosting 的 404 页面。 I tried checking the files to see if there was a marketing.evoco.io subdirectory that might be causing the issue but this was not the case.我尝试检查文件以查看是否存在可能导致问题的 marketing.evoco.io 子目录,但事实并非如此。 Also checked on Cloudflare if there was any issue with the DNS, maybe an A record that might be causing an issue but everything is ok there, there is a wildcard domain on cloudflare, I have no idea what else I should look into to make marketing.evoco.io work.如果 DNS 有任何问题,还检查了 Cloudflare,可能是一个 A 记录,可能会导致问题,但那里一切正常,cloudflare 上有一个通配符域,我不知道我还应该研究什么来进行营销.evoco.io 工作。

Cloudflare DNS 配置

服务器文件上没有marketing.evoco.io 子域

My .htaccess has the following configuration:我的 .htaccess 有以下配置:

RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]

# add a trailing slash to /wp-admin
RewriteRule ^wp-admin$ wp-admin/ [R=301,L]

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^(wp-(content|admin|includes).*) $1 [L]
RewriteRule ^(.*\.php)$ $1 [L]
RewriteRule . index.php [L]

And my wp-config.php has the following configuration:而我的 wp-config.php 具有以下配置:

define( 'MULTISITE', true );
define( 'SUBDOMAIN_INSTALL', true );
define( 'DOMAIN_CURRENT_SITE', 'evoco.io' );
define( 'PATH_CURRENT_SITE', '/' );
define( 'SITE_ID_CURRENT_SITE', 1 );
define( 'BLOG_ID_CURRENT_SITE', 1 );

What am I missing that is causing specifically marketing.evoco.io not to work but every other site that I add to work perfectly fine?我错过了什么导致 Marketing.evoco.io 无法正常工作,但我添加的所有其他网站都可以正常工作?

Hope you can help me:)希望你能帮我:)

Found the issue, there was a problem with my Hosting Provider where the domain wasn't completely deleted on cpanel even though it wasn't showing up on the GUI.发现了问题,我的托管服务提供商出现了问题,即域没有在 cpanel 上完全删除,即使它没有显示在 GUI 上。 Everything is working fine now: :)现在一切正常::)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM