htaccess wildcard redirect misses some URLs

You’ve put the redirect directive in the wrong place. It needs to go before the WordPress front-controller, otherwise, the redirect will simply get ignored for anything other than URLs that map directly to the filesystem. Since these domains are also on the same server (same hosting account I assume) then you will need to check … Read more

Error:406 not acceptable

I had a similar problem recently with this 406 Not Acceptable error occurring when trying to update permalinks in WordPress. I also had the same problem when submitting any changes to the editor, etc. Google Webmaster tools would yield the same result. The solution is to disable the mod_security firewall within your .htaccess file. My … Read more

htaccess redirect not working

Even though you’ve placed this rule at the top of the .htaccess file, RedirectMatch is a mod_alias directive so still runs after other mod_rewrite (ie. RewriteRule) directives, so you may have a conflict. Try changing this to a mod_rewrite directive. For example: RewriteRule ^language/(.*) /members/?members_search=$1 [R=301,L] NB: No slash prefix on the RewriteRule pattern when … Read more

Leverage browser caching not working after updating .htaccess

This should do it if ( !is_admin() || !is_admin_bar_showing() ){ add_filter( ‘script_loader_src’, ‘_remove_script_version’, 15, 1 ); add_filter( ‘style_loader_src’, ‘_remove_script_version’, 15, 1 ); } function _remove_script_version( $src ){ if (preg_match(“(\?ver=)”, $src )){ $parts = explode( ‘?’, $src ); return $parts[0]; }else{ return $src; } } This will remove the ?ver= from the file url. There’s a … Read more