Skip to content
Stojan Petkovic Stojan Petkovic

Kako se pravi

Migration of a PHP magazine with a database to static Astro: all 49 articles and URLs kept, search without a server.

Client
Kako se pravi
Role
Migration, Design, SEO & Performance
Year
2026

Highlights

  • Recipes & DIY guides
  • PHP → Astro
  • 49 articles
  • Lighthouse 97 · 100 · 100 · 100

The starting point

Kako se pravi (“How it’s made”) is a site with home recipes and DIY guides: bread, pies, kajmak, rakija, soap and charcoal, explained step by step. It ran on a PHP magazine script with a database: every visit had the server assemble the page from PHP and SQL, with a heavy Bootstrap theme on top. Pages were slow, the URLs depended on the script, and every update of the script was a risk.

The client wanted the same site and the same addresses, but as fast as a site can be, still on the same ordinary cPanel hosting. The client also asked to keep AdSense, Analytics and both Meta Pixels running, and to have the site redesigned to look like a proper food magazine.

What I built

  • A migration from a PHP magazine script and database to static Astro, with all 49 articles moved and every URL kept the same.
  • A new magazine design for recipes and DIY guides, with clear categories for cooking and home projects.
  • Search that works without a server, built into the static site.
  • AdSense, Google Analytics and both Meta Pixels still running, so income and tracking continued without a gap.
  • The same cPanel hosting, with no server-side code left to update or break.

The biggest risk in a migration is losing traffic. Keeping every URL, title and article meant Google saw the same pages, only much faster. Each recipe and guide keeps its own title and description, images are optimised, and structured data marks up the articles. Faster pages and a cleaner layout help both rankings and ad revenue.

Results

0 Performance
0 Accessibility
0 Best Practices
0 SEO

On the live site Lighthouse gives 97 for Performance and 100 for Accessibility, Best Practices and SEO, with ads, analytics and both pixels still running.

Questions about this project

Did Kako se pravi lose search traffic after the migration?

The migration kept all 49 articles and every URL exactly as before, so search engines saw the same pages, now served as fast static HTML.

Can a static site still show ads?

Yes. AdSense, Google Analytics and both Meta Pixels kept running after the move to Astro.

Why move from PHP and a database to static Astro?

Static pages load faster, need no database and have no script to update, which makes the site quicker and more secure on ordinary hosting.

Services used on this project

Want the same for your business?