Installation Issues - Links not working

This is the right place to report general bugs, make suggestions or ask for help.
Post Reply
joticakr
Posts: 4
Joined: Sat Apr 17, 2021 4:58 pm

Installation Issues - Links not working

Post by joticakr » Sat Apr 17, 2021 5:16 pm

Hello Flatpress Community,

Thanks for this great projekt. I had no trouble to install Flatpress, but if I try to open an entry I still remain on the main page. It doesn't matter if I click on the title or the "read more" link. I use version 1.2 with php 7.4 on a raspberry pi 4. Below you find my nginx entry. Does anyone have an idea where to start looking for the failure?

Best regards,
Johannes

Code: Select all

server {
        listen 443 ssl http2;
        listen [::]:443 ssl http2;
        server_name flatpress.example.com;

        ssl_certificate /etc/letsencrypt/flatpress.example.com/rsa/fullchain.pem;
        ssl_certificate_key /etc/letsencrypt/flatpress.example.com/rsa/key.pem;
        ssl_certificate /etc/letsencrypt/flatpress.example.com/ecc/fullchain.pem;
        ssl_certificate_key /etc/letsencrypt/flatpress.example.com/ecc/key.pem;
        ssl_trusted_certificate /etc/letsencrypt/flatpress.example.com/ecc/ca.pem;

        include /etc/nginx/snippets/ssl.conf;
        
        include /etc/nginx/snippets/headers.conf;

        root /var/www/flatpress;
   	index index.php index.html index.htm;

    	client_max_body_size 100M;

     location / {
            try_files   $uri $uri/ /index.php;
        }

    location ~ \.php$ {
         include snippets/fastcgi-php.conf;
         fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
         fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
         include fastcgi_params;
    }

     location ^~ /data {
         deny all;
      }
}

User avatar
Arvid
FlatPress Coder
Posts: 197
Joined: Sat Jan 26, 2019 7:40 pm
Contact:

Re: Installation Issues - Links not working

Post by Arvid » Sun Apr 18, 2021 9:40 am

Johannes,

welcome to FlatPress :)
Without knowing any details, this sounds like a htaccess / URL rewrite problem to me. Please, go to Plugins -> PrettyURLs Config in the admin area and try another PrettyUrls mode. Does that help?

All the best,
Arvid

joticakr
Posts: 4
Joined: Sat Apr 17, 2021 4:58 pm

Re: Installation Issues - Links not working

Post by joticakr » Sun Apr 18, 2021 8:05 pm

Hello Arvid,

This tip helped a lot. Thank you!

BR, Johannes

User avatar
Arvid
FlatPress Coder
Posts: 197
Joined: Sat Jan 26, 2019 7:40 pm
Contact:

Re: Installation Issues - Links not working

Post by Arvid » Thu Apr 22, 2021 6:16 am

Awesome \o/

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 1 guest