I am using following functions to display pagination on archive pages of my site.
<?php previous_posts_link('< Previous', $loop->max_num_pages); ?>
<?php next_posts_link('More >', $loop->max_num_pages); ?>
And it is working very fine on my localhost. But not on my server, the issue is that we have some redirects written on my server's .htaccess and since my wordpress is subdomain I dont really want to touch my root .htaccess file.
Default pagination links my pages to
domain.com/wordpress/posttype/page/2
domain.com/wordpress/posttype/page/3
and so on.. but the above links gets redirected to something like following
domain.com/wordpress/posttype/page/blah2
domain.com/wordpress/posttype/page/blah3
which eventually returns 404 page. (ofcourse its due to .htaccess redirects on my server)
So All I want to do is change permalink structure for my pagination so that my pagination links look something like these :
domain.com/wordpress/posttype?page=2
domain.com/wordpress/posttype?page=3
Thank You.