rewrite Archives - Justin Silver https://www.justinsilver.com/tag/rewrite/ Technology, Travel, and Pictures Fri, 01 Mar 2019 17:59:49 +0000 en-US hourly 1 https://wordpress.org/?v=6.0.1 https://www.justinsilver.com/wp-content/uploads/2013/06/cropped-apple-touch-icon-160x160.png rewrite Archives - Justin Silver https://www.justinsilver.com/tag/rewrite/ 32 32 “It appears Minify URL rewriting is not working” in W3TC + NGINX: w3tc_rewrite_test https://www.justinsilver.com/technology/wordpress/fixed-appears-minify-url-rewriting-working-w3tc-nginx-w3tc_rewrite_test/?utm_source=rss&utm_medium=rss&utm_campaign=fixed-appears-minify-url-rewriting-working-w3tc-nginx-w3tc_rewrite_test https://www.justinsilver.com/technology/wordpress/fixed-appears-minify-url-rewriting-working-w3tc-nginx-w3tc_rewrite_test/#respond Sat, 23 Nov 2013 03:47:23 +0000 http://justin.ag/?p=3122 I am running WordPress on NGINX and using W3TC for caching, however I was consistently getting the error "It appears Minify URL rewriting is not working" in the WordPress admin. After inspecting the code...

The post “It appears Minify URL rewriting is not working” in W3TC + NGINX: w3tc_rewrite_test appeared first on Justin Silver.

]]>
AmpedSense.OptimizeAdSpot('AP'); AmpedSense.OptimizeAdSpot('IL'); AmpedSense.OptimizeAdSpot('IR');

I am running WordPress on NGINX and using W3TC for caching, however I was consistently getting the error "It appears Minify URL rewriting is not working" in the WordPress admin. After inspecting the code I found that there is a rewrite rule that is include in the .htaccess file for Apache, but as .htaccess isn’t supported for NGINX, it wasn’t properly handling the rewrite test. At issue is a check forĀ w3tc_rewrite_test which should be rewritten to W3TC. The following addition to my NGINX configuration cleared up the issue:

if (!-f $request_filename) {
  rewrite /w3tc_rewrite_test$ /wp-content/plugins/w3-total-cache/pub/minify.php?w3tc_rewrite_test=1 permanent;
}

The post “It appears Minify URL rewriting is not working” in W3TC + NGINX: w3tc_rewrite_test appeared first on Justin Silver.

]]>
https://www.justinsilver.com/technology/wordpress/fixed-appears-minify-url-rewriting-working-w3tc-nginx-w3tc_rewrite_test/feed/ 0