How to turn an old PHP website into static HTML
An old PHP site can often become static HTML if PHP mostly inserts the same header, footer and content on every visit. The work is different when the server looks up records, receives files or gives signed-in users different information. Inspect what visitors see and what the site does for them before deciding which pages to move.
Make a page and feature inventory
Start with your main navigation and recent landing pages. Add brochures, downloads and links from advertising or business listings. Open both desktop and mobile versions of each priority page. Group your notes by what the page needs.
| Example | Possible plan |
|---|---|
/about.php shows the same text to everyone |
Rebuild as a static page. Preserve the old address where your host supports it, or redirect it to the equivalent new URL. |
/product.php?id=42 shows one public product |
Select important product pages and map the old URLs individually. Confirm your host can distinguish query-string routes before promising redirects. |
/contact.php takes a message |
Identify where the data goes. Move to a suitable hosted form if your old PHP handler will be retired. |
/customers.php opens a private account |
Keep a supported account system and review links between it and the new public pages. |
Test the new version alongside the original
Back up the source files and database, and decide which URLs must remain available. If several old pages differ only by query string, verify that the final URLs and redirects represent the right content before redirecting visitors. See the website migration SEO checklist for a worked map.
Blankinstall works from publicly visible pages and lets you inspect a free homepage rebuild. If the preview fits, select eligible pages and review interactive features before checkout. The delivered ZIP contains the rebuilt public site. Keep a separate backup if you need the original application, database or private records.
Run the old public installation on a supported setup for as long as it remains live. Once the new site, links and enquiries are verified, review what else the PHP host still runs before retiring it. PHP support decision guide
See how your website could work as a static site
- Enter the address of a public website you have permission to submit. If it is eligible, sign in to request a free homepage preview.
- Review the preview. If you want to convert, verify control of the source, select the pages you need and review which features can carry over before paying.
- Download the rebuilt site as a ZIP or choose optional hosting where available. Check the pages and enquiry paths before switching your site over.