kompact
kompact copied to clipboard
Page not loading correctly
Hi there, I'm having a few issues after installing Kirby and applyting the theme. You can see the issue here https://linuxlifecycle.pw/about
Running Debian 9 with Nginx
# Don't hint these as folders
rewrite ^/(content|site|kirby)$ /error last;
# block content
rewrite ^/content/(.*).(txt|md|mdown)$ /error last;
# block all files in the site and kirby folder from being accessed directly
rewrite ^/(site|kirby)/(.*)$ /error last;
# removes trailing slashes (prevents SEO duplicate content issues)
if (!-d $request_filename) {
rewrite ^/(.+)/$ /$1 permanent;
}
location ~ /panel { # with the ~
index index.php;
try_files $uri $uri/ /panel/index.php?$uri&$args;
}
# site links
location ~ / {
try_files $uri $uri/ /index.php?$uri&$args;
}
# Prevent clients from accessing hidden files (starting with a dot)
# This is particularly important if you store .htpasswd files in the site hierarchy
location ~ (?:^|/)\. {
deny all;
}
# Prevent clients from accessing to backup/config/source files
location ~ (?:\.(?:bak|config|sql|fla|psd|ini|log|sh|inc|swp|dist)|~)$ {
deny all;
}
Thanks :-)
Hi @javielico, does the "About" page really exist, actually?
Yes but the layout it’s all messed up if you have a look at that link, I’m using the last version of Kirby Cms.
"About" is missing, the "Projects" page is messed up indeed.
This is because the site/templates/projects.php
file is apparently the one from the Kirby starter's theme. You have to delete it in order to fix the layout issue.
Let me know if this helps. ✌️