Hi,
we have a company website developed with Kirby 2 running perfectly since years.
We have also a local test installation of that site. The server specification is
Windows Server 2016, Apache 2.4.33, PHP 7.4.7
Has been running perfectly until last week. I moved the installation folder to another location on same server, because this server is going to be our fileserver in future. I changed the path in apache httpd.conf to the new location.
Problem
I can see the start page, but no subpages.
What I already tried
I checked the troubleshooting advices and have been reading every forum post regarding “subpages”, “mod_rewrite”, “.htaccess”, “rewrite base” etc. etc.
So I moved the installation back to a similar folder like before (I had deleted the original one). No success.
I took the original Kirby 2.5.12 starterkit with original .htaccess
No success
Detailed Information
Kirby starterkit 2.5.12 now located in D:\Test\kirby-fresh-starterkit
httpd.conf entry is:
Alias /kirby-starterkit "D:\Test\kirby-fresh-starterkit"
<Directory "D:\Test\kirby-fresh-starterkit">
AllowOverride All
Require ip 192.168.115
# Für PHP
Options +ExecCGI
</Directory>
Server name is apollo1, so when I go to http://apollo1/kirby-starterkit/
I see the startpage and even those 3 images below the project A to project C blocks.
Apache log says
192.168.115.23 - - [15/Jun/2020:07:38:26 +0200] "GET /kirby-starterkit/ HTTP/1.1" 200 4099
192.168.115.23 - - [15/Jun/2020:07:38:29 +0200] "GET /kirby-starterkit/assets/css/index.css HTTP/1.1" 200 17894
192.168.115.23 - - [15/Jun/2020:07:38:29 +0200] "GET /kirby-starterkit/thumbs/projects/project-b/room-600x600.jpg HTTP/1.1" 200 62337
192.168.115.23 - - [15/Jun/2020:07:38:29 +0200] "GET /kirby-starterkit/thumbs/projects/project-a/creative-tools-600x600.jpg HTTP/1.1" 200 88271
192.168.115.23 - - [15/Jun/2020:07:38:29 +0200] "GET /kirby-starterkit/thumbs/projects/project-c/camera-600x600.jpg HTTP/1.1" 200 83599
etc. so all the stuff from subdirectories is 200 OK
When I go to http://apollo1/kirby-starterkit/projects/project-a I get in Firefox:
Not Found
The requested URL /Test/kirby-fresh-starterkit/index.php was not found on this server.
and in apache log
192.168.115.23 - - [15/Jun/2020:08:00:19 +0200] "GET /kirby-starterkit/projects/project-a HTTP/1.1" 404 235
however,
http://apollo1/kirby-starterkit/thumbs/projects/project-a/creative-tools-600x600.jpg
is displayed with no error.
Assumption
Must be an issue with directory rights or apache configuration. mod_rewrite is working.
Isn’t it so that the following lines from .htaccess
# make site links work
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php [L]
render all subpage accesses back down to the main index.php?
Browser keeps telling me
The requested URL /Test/kirby-fresh-starterkit/index.php was not found on this server.
for any subpage, but it is definitely present.
Apache httpd.exe service runs under SYSTEM account;
in the install folder D:\Test\kirby-fresh-starterkit the user SYSTEM has full read/write access.
Any ideas?