Not able to rewrite the pagination URL for the posts

Seems to be related to: WordPress stripping out “page” query parameter with 301 redirect.

See Make WordPress Core ticket 50976:

“We understand that it may be annoying for themes and plugins authors to fix their usage of this variable, but it would introduce a way more issues if it was changed on WordPress Core side. It’s objectively better to get this fixed on plugins and themes since it is a wrong usage of WordPress variables.

Closing this as wontfix, as the issue shouldn’t be fixed on WordPress core but rather on plugins and themes side.”

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)