TechHamlet
Forum Replies Created
-
Thanks a lot bro! I just turned off w3 total cache’s minify and added Better WordPress Minify plugin to handle it… Now its working ?? Thanks again ??
I also have the same problem… I just moved jquery to the top and it started to work on my winodws machine… But in my ubuntu machine its not working yet! https://techhamlet.com/2012/02/how-to-install-the-latest-vlc-2-0-in-ubuntu/
Forum: Plugins
In reply to: [W3 Total Cache] [Plugin: W3 Total Cache] Varnish purge is not workingJust updated the default.acl :
acl purge { "localhost"; "127.0.0.1"; "77.81.240.177"; } sub vcl_recv { # Add a unique header containing the client address remove req.http.X-Forwarded-For; #set req.http.X-Forwarded-For = client.ip; set req.http.X-Forwarded-For = req.http.rlnclientipaddr; if (req.request == "PURGE") { if (!client.ip ~ purge) { error 405 "Not allowed."; } ban("req.url ~ "+req.url); error 200 "Purged"; } if (req.http.Accept-Encoding) { #revisit this list if (req.url ~ "\.(gif|jpg|jpeg|swf|flv|mp3|mp4|pdf|ico|png|gz|tgz|bz2)(\?.*|)$") { remove req.http.Accept-Encoding; } elsif (req.http.Accept-Encoding ~ "gzip") { set req.http.Accept-Encoding = "gzip"; } elsif (req.http.Accept-Encoding ~ "deflate") { set req.http.Accept-Encoding = "deflate"; } else { remove req.http.Accept-Encoding; } } if (req.url ~ "\.(gif|jpg|jpeg|swf|css|js|flv|mp3|mp4|pdf|ico|png)(\?.*|)$") { unset req.http.cookie; set req.url = regsub(req.url, "\?.*$", ""); } #if (req.url ~ "(\?|&)(utm_(campaign|medium|source|term)|adParams|client|cx|eid|fbid|feed|ref(id|src)?|v(er|iew))=”) { # set req.url = regsub(req.url, “\?.*$”, “”); #} if (req.http.cookie) { if (req.http.cookie ~ "(wordpress_|wp-settings-)") { return(pass); } else { unset req.http.cookie; } } } sub vcl_fetch { if (req.url ~ "wp-(login|admin)" || req.url ~ "preview=true" || req.url ~ "xmlrpc.php") { return (hit_for_pass); } if ( (!(req.url ~ "(wp-(login|admin)|login)")) || (req.request == "GET") ) { unset beresp.http.set-cookie; set beresp.ttl = 2h; } if (req.url ~ "\.(gif|jpg|jpeg|swf|css|js|flv|mp3|mp4|pdf|ico|png)(\?.*|)$") { set beresp.ttl = 30d; } #else { # set beresp.do_esi = true; #} } sub vcl_deliver { # multi-server webfarm? set a variable here so you can check # the headers to see which frontend served the request # set resp.http.X-Server = "server-01"; if (obj.hits > 0) { set resp.http.X-Cache = "HIT"; } else { set resp.http.X-Cache = "MISS"; } } sub vcl_hit { if (req.request == "PURGE") { set obj.ttl = 0s; error 200 "OK"; } } sub vcl_miss { if (req.request == "PURGE") { error 404 "Not cached"; } }
Note : Im using the latest varnish 3!
I just checked… actually, the plugin author is also redirecting his sitemap.xml to sitemap_index.xml… Check this : https://yoast.com/sitemap.xml
Forum: Plugins
In reply to: [Yoast SEO] [Plugin: WordPress SEO by Yoast] Sitemap not workingAfter removing robots.txt rules, after rebooting the server, I got the error again! So, I tried this :
In W3Total Cache, under Browser Cache, try to disable “Set W3 Total Cache header” for HTML & XML and then restart Nginx and try again! It worked for me ??
In W3Total Cache, under Browser Cache, try to disable “Set W3 Total Cache header” for HTML & XML and then restart Nginx and try again! It worked for me ??
Forum: Plugins
In reply to: [Yoast SEO] [Plugin: WordPress SEO by Yoast] Sitemap not workingIf you have an Nginx server, remove any rules applied to the robots.txt and it might work! It worked for me!
Sorry…. I just found that its added from another plugin!