Htaccess file on Shared Hosting Causing 500 Error on Second Site


I have a hosting package that allows me to add multiple domains/websites to one account. It looks like they are created as sub folders in the file manager.

I currently have two sites, the main account site (site 1) and a separate site which is saved in a sub folder but has its own domain name (site 2). Both are Modx sites and have worked perfectly for years.

Yesterday I registered a third domain (site 3) and site and it is currently just a .HTML holding page.

Whenever site 1’s .htaccess file is enabled site 3 shows 500 errors and duplicates the domain when the www. version is accessed (eg works but attempting to load results in a 500 error and this URL

Step to reproduce

Enable the root domain’s .htaccess file and load the www. version of site 3.


The host is running Apache and I am the latest MODx on Sites 1 and 2 and site 3 is just a .HTML holding page.

So ‘site 3’ is also in a subfolder?
Try adding a .htaccess file to this subfolder to overwrite the one from the root folder.

It is yes and copying another htaccess file seems to have worked, thank you! I tried many things, but not that!

That’ll be why site 2 also works as it has its own htaccess file.

Thanks again.

This topic was automatically closed 2 days after discussion ended and a solution was marked. New replies are no longer allowed. You can open a new topic by clicking the link icon below the original post or solution and selecting “+ New Topic”.