Delete a subdomain

Hello,

I have a WordPress (WP) site hosted at OVH, Pro subscription, rehve.fr, on which I'm experiencing a large number of denied requests that cause visitors to be redirected to the WP installation page instead of a standard “access denied” page. I have opened several tickets with OVH and carried out detailed follow‑ups on the WP forums, without any conclusive result at this point.

Several years ago I created a sub‑domain nous.rehve.fr. I imagine it could be one of the origins of my problem. I want to detach it from the main site to make it an independent site. I see plenty of tutorials and advice on creating a sub‑domain, but none on deleting a sub‑domain.

The main difficulty seems to be that the database is shared between the two sites. The table prefix of the main site is 'wp_', while the sub‑site uses 'wpNous_'.

To make it an independent site, I imagine opening a new hosting account at OVH, installing a fresh WP, uploading the files from nous.rehve.fr, but how do I split the database between the 'wp_' tables that are no longer needed for the new site and the 'wpNous_' tables that belong to it?

Finally, once the new site is operational, how should I delete the sub‑domain that I no longer need on the original site?

Thanks in advance for your advice.

Hello @HerveM9

Returning an error or “page not found” is not the responsibility of OVH, but of your WordPress configuration.

Hello @HerveM9

For installing WordPress on a subdomain, I suggest you check the following guide:

https://wordetweb.com/word-et-web/WORDPRESS-ajouter-deuxieme-domaine-2eme-installation-de-Wordpress-FR.htm

Also read my guide carefully:

https://wordetweb.com/word-et-web/WORDPRESS-guide-installation-de-WordPress-premier-domaine-chez-OVH-FR.htm

Note: for the prefix of your tables, you can set: wp_new

This way the tables of the old site and the new one will be clearly differentiated.

Thank you, Gaston,

I’m going to create a domain/hosting on OVH to transfer the WP sub‑site from my current hosting. Your tutorials will be very useful to me, as my previous installations were done several years ago and I’ve somewhat forgotten the procedure.

However, after a quick review of these documents I don’t see my specific case where I only want to reinstall the database tables prefixed “wpNous_”. How do I separate them from the other (much larger) tables prefixed “wp_”?

I hope I have phrased my question more or less clearly; sorry if it isn’t the case :roll_eyes:

In fact, with the PRO hosting I already have, I can create a second site on the same hosting and a second independent database to host the tables prefixed 'wpNous_'.

Does that change anything regarding my question? Thanks.