New answers tagged nginx
Ok. After a frustrating weekend I have a workaround (but still not real reason why the simpler version worked on one install and not another!) $args = array( 'posts_per_page' => $pageSize, 'offset'=> $offset, 'tax_query' => array( array( 'taxonomy' => 'category', 'field' => 'term_id', ...
I solved it!! here's how: Edit your current theme's functions.php and add following line after the opening PHP tag to disable canonical redirection. remove_filter('template_redirect','redirect_canonical'); save and exit. Restart apache2 and nginx and check with curl -I IP.
WordPress is filled with lots of great utility functions, such as untrailingslashit, which removes a trailing slash on path. It's mostly for use with paths (not URLs) but depending on how you are putting this URL together, it might work this.
Top 50 recent answers are included