Article Links Not Working

This is the right place to report general bugs, make suggestions or ask for help.
Post Reply
User avatar
WineMan
Posts: 138
Joined: Tue Sep 01, 2020 5:03 pm

Article Links Not Working

Post by WineMan » Sat Mar 21, 2026 3:33 pm

I tried out the new theme in Flatpress 1.5 and while the new theme looks great (except for the background image), when clicking on the article title or the Read More, I get an error message that the URL cannot be found. In looking back at previous versions, I noted that the url in that version has the following: http://localhost/flatpress1.5/index.php ... he/article, this version has the following: http://localhost/flatpress1.5/date/and/ ... he/article. Evidently, the index.php portion of the url is missing. Hopefully it is not just on my installation. BTW, this error occurs with any of the themes, so it is not a theme issue.

User avatar
fraenkiman
FlatPress Coder
Posts: 500
Joined: Thu Feb 03, 2022 7:25 pm
Location: Berlin, Germany
Contact:

Re: Article Links Not Working

Post by fraenkiman » Sat Mar 21, 2026 7:22 pm

Hello WineMan,

Clear the theme and template cache via the admin maintenance menu.

Check the blog URL in the admin configuration. Make sure to check whether it’s http:// or https://

If there is an .htaccess file for the PrettyURLs plugin, check there as well to see if it’s http:// or https://

Apparently, the issue only occurs in local Windows environments and when http:// is not used.
In Admin, set PrettyURLs to HTTP Get or Pretty, if supported.

Best regards,
Frank
:pencil: You are strong in PHP and Java Script? :point_right: Then help us to improve FlatPress. :point_left:

:exploding_head: Looking for ideas, templates, examples and answers to frequently asked questions?
:bulb: You'll find it here.

My :de: FlatPress-Blog: https://frank-web.dedyn.io, synced with :elephant: Mastodon

User avatar
WineMan
Posts: 138
Joined: Tue Sep 01, 2020 5:03 pm

Re: Article Links Not Working

Post by WineMan » Sat Mar 21, 2026 8:03 pm

Yes, the url is http://, not https://, and I went in and added index.php to the end of the url and that messed everything up. I just deleted everything and started all over again. I will let you know if I run into the same situation.

User avatar
WineMan
Posts: 138
Joined: Tue Sep 01, 2020 5:03 pm

Re: Article Links Not Working

Post by WineMan » Sat Mar 21, 2026 8:12 pm

I re-installed the application and when clicking on the title of the article, this is the url that is showing: http://localhost/flatpress1.5/2026/03/2 ... /comments/ which of course then tells me that there is no such url. I cleared the cache in the earlier instance and in this new instance as well with the same results. Perhaps the issue is that I am running php version 7.4.27?

User avatar
fraenkiman
FlatPress Coder
Posts: 500
Joined: Thu Feb 03, 2022 7:25 pm
Location: Berlin, Germany
Contact:

Re: Article Links Not Working

Post by fraenkiman » Sat Mar 21, 2026 8:22 pm

I've prepared a patched PrettyURLs file (v3.0.4) for you to address this issue.
plugin.prettyurls3_0_4.zip
(10.96 KiB) Downloaded 32 times
Please test this file on a FlatPress instance where there is no .htaccess file yet and you haven’t configured any PrettyURLs settings.

Expected result:
If there is no .htaccess file and no settings have been configured, the mode will automatically be set to HTTP Get.

Best regards,
Frank
:pencil: You are strong in PHP and Java Script? :point_right: Then help us to improve FlatPress. :point_left:

:exploding_head: Looking for ideas, templates, examples and answers to frequently asked questions?
:bulb: You'll find it here.

My :de: FlatPress-Blog: https://frank-web.dedyn.io, synced with :elephant: Mastodon

User avatar
WineMan
Posts: 138
Joined: Tue Sep 01, 2020 5:03 pm

Re: Article Links Not Working

Post by WineMan » Sat Mar 21, 2026 8:59 pm

Thank you...it is now working. I will keep testing and see how things go before I go live with it on my webhost.

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests