Converting a PHP site into Static

SirLouen

Elite Member
Executive VIP
Jr. VIP
Joined
Jan 17, 2015
Messages
5,263
Reaction score
4,955
I have a 12 year old site based on custom PHP code that is unmaintaned, and is willing to keep it alive just for recalling purposes. The problem is that maintaning this site means a very old PHP version (5.3) that is obviously a very weak link in my security and since it's not going to be updated anymore, I'm planning on converting the site to full Static HTML/JS/CSS and loading it the simplest as possible.

The only problem is that the site has around 3K pages, so I'm not willing to do this, for obvious reasons, manually.

But I'm not sure how I could run some kind of parser or script, that crawls the whole site and saves for me the static site maintaining, most importantly, the routes (for example if the route of certain page is example.com/page-number-1 the result shall be example.com/page-number-1.html so I could rewrite it eventually with htaccess or something like that)

Not sure if anyone has had a similar experience, but looking for advice for this purpose.
 
Last edited:
This is a fairly common thing.

Search for static site maker, there are many out there.
 
Back
Top