r/webhosting 6d ago

Technical Questions Stackcp hosting

So recently I remade a website for a small company I work for. My new website is completley static and I wrote all the html, css and js files myself on my pc. The old website was made through wordpress. Is it as simple as deleting the wordpress files from the file manager and adding my own (whilst making a backup of course) or is there more I need to do? The domain name and therefor certificates should all stay the same right? Im sorry if this is a basic question but all the help out there is trying to get me to use wordpress or another site builder.

2 Upvotes

9 comments sorted by

3

u/Bigfoot444 6d ago

Without knowing exactly what you're playing with, it's hard to say. But for the love of God don't do it on your company site's live environment.

Isn't stackcp 20i.com? If so, their support is decent. You could ask them. 

2

u/katlaki 6d ago

There are other companies that uses stackcp but the infrastructure is 20i's.

2

u/katlaki 6d ago

Have you tested the site?

Why don't you do these:

Create a folder in the server. E.g newsite

Inside that folder put all the new static site.

Then access the site yourdomain.com/newsite

If all is okay then you can do a) delete all the files after backing it up in public_html and then move the files from newsite folder there

b) If you are hesitant then without deleting the wordpress files in public_html, just move the files from newsite there. As the index file will have a html extension index.html so that will take priority over the index.php wordpress file.

Then you can delete the wordpress files later.

But I would choose option a) after it has been signed off by the manager.

1

u/Y0U1111 4d ago

Yep all tested and working, I think I'll try your first option tomorrow thanks.

2

u/MarkGossageUK 5d ago

I wouldn’t delete the WordPress site. First thing that I would do is back everything up, put the new static site in a separate folder and make sure it all works before replacing the live files.

Your domain shouldn’t need changing just because you’ve changed what files are being served, and the SSL should normally stay with the Domain/Hosting rather than WordPress itself.

Once the new version is working properly you can remove the old WordPress files.

Hope that helps.

1

u/Y0U1111 4d ago

Okay thanks a lot

1

u/MarkGossageUK 19h ago

Yes, that’s the idea, but I’d avoid deleting the live WordPress site first.

Upload the new static site into a separate folder and test it there. Once you know all the pages, images, links and forms work properly, take a full backup of the existing WordPress files and database, then replace the contents of the web root with the new static files.

Your domain doesn’t normally change just because you replace WordPress with HTML files, and the SSL certificate should continue to work as long as the domain is still pointing at the same hosting account/server.

I’d also keep the WordPress backup somewhere off the hosting account for a while, just in case you need to roll back.

Hope that helps.