Can I deploy my custom PHP site to a domain that previously had WordPress installed?

Hi everyone! I need some advice about a hosting situation I’m dealing with. A while back I set up WordPress on my domain (let’s call it example.com) and was working on it through the admin panel at example.com/wp-login.php. I never actually published anything though, so the frontend was still completely empty. Now I’ve decided to scrap the WordPress idea entirely and build a custom website using PHP MVC framework instead. My question is: will there be any conflicts or problems if I upload my new PHP application files to the same domain? Do I need to clean out the WordPress installation first, or can I just overwrite everything? I’m worried about potential database issues or leftover WordPress files causing problems with my new site. Has anyone dealt with this kind of situation before?

I did this exact thing two years ago switching from WordPress to Laravel. You can definitely deploy your custom PHP site to the same domain, but don’t just overwrite files - do a complete cleanup first. WordPress leaves tons of hidden files and subdirectories that’ll mess with your MVC routing later. Here’s what worked for me: backup your database, then wipe everything from the root directory including .htaccess (WordPress mangles it with their rewrite rules). Upload your new app, then create a fresh .htaccess for your framework. For the database - if you’re using the same one, drop the WordPress tables so there’s no naming conflicts. Took me 30 minutes and saved major headaches later.

totally! best to get rid of those wp files first. just log into ftp, wipe the public_html, then throw in your php stuff. as for the db, it’s usually not a prob unless ur new site has same table names, which is pretty rare.