Rebuilding a 2002 online shop – from Perl to modern PHP, with AI
A 20-year-old Perl shop of an Austrian gift-basket retailer is being rebuilt with AI support as a lean, mobile PHP shop – same workflows, an in-house checkout with PayPal, automatic invoices and over 1,800 redirects without ranking loss.
It all started with a simple question: why does the online shop occasionally hang? The troubleshooting turned into a full project – securing and speeding up a shared hosting server and completely rebuilding a shop that is more than 20 years old on a modern platform.
Starting point
The shop of an Austrian gift-basket retailer has been online for over 20 years – but technically it was still in its 2002 state: a shop application written in Perl, without updates for more than two decades. Around 860 products were maintained in a CSV file, partly via Excel, partly via bolted-on helper scripts. On top of that there were over 560 static pages for search engines and a fixed table layout that was unusable on phones.
What we did
Rebuilt the shop – without changing anything. The brief was a faithful rebuild: same workflows, same payment paths, same email texts – only modern. Technically this is lean PHP 8.4 with MariaDB, without heavy frameworks, cleanly separated from the rest of the server. The design is new, mobile-first, in the existing brand colours and without external fonts or tracking.
- In-house checkout instead of an external order server – payment via the official PayPal interface; no credit-card data is handled in the shop any longer.
- VAT based on the delivery address, including a live check of the VAT ID against the EU register (VIES).
- Automatic invoices as PDFs with a sequential number and the mandatory Austrian details, sent on receipt of payment.
- A dedicated admin area: orders (including phone orders), products with variants and image upload, categories, vouchers, sortable lists with instant search and a change log.
- Search rankings preserved: over 1,800 old URLs were tested and each resolves via an exact redirect to the matching new page – no ranking loss. Plus a sitemap with more than 600 pages and 540 product images.
The role of AI
The work was carried out with AI support – driven and approved step by step by our administrator. Three analyses ran in parallel (shop flow, data and administration, addresses and design) and produced a complete, verifiable specification. Migrating the partly inconsistent legacy data – varying column counts, duplicate article numbers, character set and phone formats – was built as a repeatable process that can be re-run at any time up to the switch-over day, without touching the running old shop. What would classically have taken weeks was ready for acceptance in a few days.
Status
Within two days we produced the analysis, server hardening, performance tuning and an acceptance-ready new shop on a protected preview address. The switch-over of the live shop is prepared with backups and tests; a rollback to the old state would be possible in under a minute. The project shows what is realistic with AI today: old, business-critical systems can be moved into a modern, secure environment precisely, quickly and without losing functionality.