How to disable multisite?

I had a website with French and English in the muliti site definitions.
Now I dont need them anymore, and I am trhying to reset the sites to have only one.
I am unbale to do so.

Can’t find any proper configuration to make it works, the ftonend is always redirect to a prefix site or display an page error 404.

any idea how to solve this ? please

Hi @chris,

Consider this scenario:

  1. French site with no prefix in the Configuration table. A page /produits.
  2. English site with a “/en” prefix in the Configuration table. A page /en/products.

If you disable the English site in the Site Definition table, the language picker will only display French.

Attempting to access a URL created for the English site (e.g., /en/products) will result in a 404 error since the site is inactive.

What exactly is the issue? Should /en/products be redirected to /produits, for example, to avoid the 404 error?

While this would prevent the 404 error, it’s worth noting that users expecting an English page would be redirected to a French one.

Hi @apinard

thanks for your reply.

my initial configuration was different.
i have one prefix url for both languages
/fr for French and en for English.

I deleted the English config.
and tried to remove the url prefix for the remaining site French,

but the domain always redirect to the /fr route, resulting in a 404 error page

Wondering if it’s related to the cache?

it looks like it I do agree,
I ran the cache:clear command but it sisnt solve anything

What about the browser cache

Here is a link about disabling multisite:

it happens on all the browsers I tried, chrome, safari, arc.

and my theme does not use a config file for multisite.
actually, I switched theme, i guess the previous theme was using this config file but I removed this theme now