Only when it's not configured properly.Has anyone experienced something similar on a site running both WordPress and a forum?
Yes, of course, it's updating the forum software. But, it shouldn't be changing the server configuration that it's hosted on.Could the core installation be replacing or modifying a file?
Possibly, Would need to see what those look like to get an idea.Could this be related to .htaccess or rewrite rules?
Yes, it could. Depending on the server settings for default page scope. This relates to my hint above (#2). It could be loading whatever the default page for the server is based on .htaccess or other deeper configuration.Could WordPress be taking over the index.php file?
Refer to points #2 and #3 above. These are related to this question.Is there a setting in the forum core that needs to be changed so the forum remains the main site?
It isn't a good idea to host WordPress on the same folder you host XenForo. Both platforms should be on independent folders.Just to clarify my issue:
I’m not talking about the XenForo core, and it’s not happening when I manually install WordPress.
The problem occurs when WordPress performs an automatic core update.
After the automatic WordPress update, the main domain starts loading the WordPress "Hello" blog page instead of XenForo.
If I restore the correct XenForo index.php, the forum works normally again.
So it seems that during the automatic WordPress core update, something is changing or replacing the index.php in the web root, causing WordPress to take over the site's main entry point.
Could this be related to how WordPress and XenForo are configured in the same web root, or to the server's default document / rewrite configuration?
I’d especially like to understand why the automatic WordPress update would affect the XenForo index.php.
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wp-index.php [L]
</IfModule>
# END WordPress
Yes, you have both XenForo and WordPress on the same folder (public_html).
Trust AI as you trust a lawyer. You must understand what you are doing. Otherwise you'll find issues and could make a mess regarding SEO and conflicts between both platforms. Move XenForo to a different folder (name it "community", for example) and that will get rid of the issues.I installed using GPT
The general rule of security is to remove things you are not using. Having a Wordpress installation sitting there for no actual purpose is a bad idea. Just remove it if you're not actively using it. If you want use it the future, please get some assistance. Or, at least, install it somewhere else other than where XenForo is installed. Do not rely on ChatGPT or other LLM's to give you the right instructions.This did not solve the problem now. Should I uninstall WordPress?
We use essential cookies to make this site work, and optional cookies to enhance your experience.