Floppy
April 26, 2024, 9:30am
1
Dear Ladys or Gentleman,
now i moved the files from /plainkit to my document root and nothing works. I adjust my settings in env.php and the first page looks normal but links and images are broken. Did you have an advise how i could solve my problem?
Best regards
Chris
Did you forget to transfer the .htaccess
? Maybe your hoster needs the RewriteBase
set to /
. Have a look at the comments in the file.
Floppy
April 26, 2024, 11:29am
3
That’s my configuration on the Webserver.
<VirtualHost *:80>
ServerAdmin me@xyz.de
DocumentRoot /var/www/html/
<Directory /var/www/html/>
Options FollowSymlinks
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Directory /var/www/html/>
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^panel/(.*) panel/index.php [L]
</Directory>
</VirtualHost>
This could literally be anything and I’m not particularly knowledgable when it comes to server configuration.
On first glance your configuration seems to miss many of rewrite rules I can see in the default .htaccess
.
Floppy
April 26, 2024, 11:48am
5
This webserver is behind a reverse proxy. I wonder why kirby needs the plainkit folder. If i move it there everything works.
Floppy
April 26, 2024, 11:56am
6
Nope, there was a caching problem with my Browser too. Now the links are correct but kirby doesn’t find the content.
Floppy
April 28, 2024, 7:37am
7
I solved it by myself. I just replace a new plainkit and upload my manually added files to it. It seems that i had destroyed something before. Now it works in document root too.