Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pagination and htaccess #523

Closed
JamesBuckland opened this issue Feb 2, 2022 · 1 comment
Closed

Pagination and htaccess #523

JamesBuckland opened this issue Feb 2, 2022 · 1 comment

Comments

@JamesBuckland
Copy link

JamesBuckland commented Feb 2, 2022

I added a <BASE href="/"> tag to the layout.html.php of my template to enable it to interact correctly with my included header and footer from the main website (htmly is stored at /news). The issue is that the pagination now points to http://example.com/?page=1 and even if I manually type /news/?page=2 it still returns the results for the first page. Is there a way to modify the htaccess file to accept /news/page/2 and pass the GET variable that way?

I tried the following rules with no luck:
RewriteRule ^page/([^/\.]+)?$ index.php?page=$1 [NC]
RewriteRule ^page/([^/\.]+)/?$ index.php?page=$1 [NC]

@danpros
Copy link
Owner

danpros commented Jun 3, 2024

We must change the core to accept that /news/page/2 (htmly.php). I will close this one. Let see if this can be implemented into HTMLy in the future. Thanks.

@danpros danpros closed this as completed Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants