Kirby 2 - 404 on subpages - need to get into

Hey there.. i need to get into an old backup of an old website.. its kirby 2.5.12.

i tried to start the page localy with php internal server php -S and everything works.. also navigating to subpages and panel works.. except displaying svgz-files due to not correct headers..

But i need to show those svgz files.. in 2017 i was coding something to display information ontop of images.. and the reason for getting this old kirby, is this part, that i want to reproduce for my current latest kirby 4

so i installed apache2 ontop of this php-install.. but i am only able to render the startpage.. if i want to navigate on the site or want to go to panel, i get 404 error on everything

going to /panel redirects to /panel/login with 404

i tried debugging via c::set('debug', true);, but still 404 on apache (on php-server, debugging works).. i checked file permissions.. php-info says, that mod_rewrite and mbstring are active.
Apache/2.4.63 (Unix) PHP/8.4.7

i am a little confused about the difference between php-server and apache.. for sure i missed some config.. but i don’t know which one.. also i was not able to find old installation-guide for this old version of kirby..

any idea which apache config i was missing?

Apache is a full-fledged web-server, while the “php-server” is a tool built that is built into PHP to facilitäte development without having to install Apache, Nginx etc. on your machine.

As regards the svgz files, you probably need to add these lines to your .htaccess:

AddType image/svg+xml svg svgz
AddEncoding gzip svgz

As regards subpages not working on Apache, then rewriting is not working as expected, probably due to .htaccess being ignored.

ON a side note, old Kirby 2.5.x is not compatible with PHP 8. Documentation for old versions of Kirby can be found in the archive: Versions | Kirby CMS

Thx a lot..

texnixe, lightning fast since a decade =)

this:

AddType image/svg+xml svg svgz
AddEncoding gzip svgz

I was trying before installing apache.. but it did not work.. svgz files are still not rendered with php-server..

chromium still says:

This page contains the following errors:
error on line 1 at column 1: Encoding error
Below is a rendering of the page up to the first error.

Firefox also can’t display the svgz..

The Documentation of kirby v2 does not show any infos about installation and/or prerequisites..

But your hint about mod_rewrite gave me a startingpoint for deeper research.. and i finaly got it working by setting AllowOverride to All

Thx a lot.. and btw: it works more or less with Apache/2.4.63 (Unix) PHP/8.4.7 =)