.htaccess issues
-
Since moving to WP 3.8 I have had major issues with ONE of the sites I run on the same Virtual Server.
All had same plugins installed.
Both used WP Super Cache
One used Cloudflare – this is the problematic site – however turning it off does nothing to resolve the issue.The issue is the homepage is always cached. Whether I am logged in as admin, add a ?r=1 querystring or say “don’t cache front/home page”
In the comments at the bottom of the page I can see
<!– Dynamic page generated in 2.328 seconds. –>
<!– Cached page generated by WP-Super-Cache on 2013-12-20 07:35:18 –>
<!– super cache –>So an 8 day old cached homepage with old content – going to page 2 is fine new content is shown. The search box doesn’t work either now for some reason.
I have tried changing themes, turning all plugins off, removing all .htaccess rules that were working but nothing helps.
So I installed your plugin which I had issues with before on something I cannot remember – however this didn’t solve the issue. Even though WP Super Cache was totally removed and your plugin installed I still got WP Super Cache comments on the homepage.
Also I had this error constantly showing
W3 Total Cache error: It appears Page Cache URL rewriting is not working. Please verify that the server configuration allows .htaccess
Unfortunately disk enhanced page caching will not function without custom rewrite rules. Please ask your server administrator for assistance. Also refer to the install page for the rules for your server.However when I check the .htacess file ALL the rules you say should be there ARE there.
The problem is obviously that you are testing for an “OK” code from your test to the homepage but because the homepage is blocking or locked it doesn’t return what you expect e.g
htaccess file contains rules to rewrite url https://www.darkpolitricks.com/w3tc_rewrite_test into https://www.darkpolitricks.com/?w3tc_rewrite_test which, if handled by plugin, return “OK” message.
The plugin made a request to https://www.darkpolitricks.com/w3tc_rewrite_test but received:
200 OK
instead of “OK” response.So even with the right rules in the file the homepage is locked. I have even tried deleting the home.php file from the theme but it still shows up.
Re-starts of apache, cleared browser cache, turned off cookies/JS, turned off Cloudflare altoghether. Even with your plugin working with Opcode APC to get round the .htaccess error message I still got the same homepage.
So I have some sort of weird issue with the homepage and changing caching plugins and front end services like Cloudflare does nothing to help me.
I have no idea what is going on and this only started after the upgrade to WP 3.8.
I thought your plugin might have helped – I had to delete a load of files manually and copy them over from your wp-content folder to the main one. Even cleared out .htaccess and let your rules exist alone in it but the homepage still is locked – viewing the souce will show you the comments at the bottom.
Any help from ANYBODY would be much appreciated.
- The topic ‘.htaccess issues’ is closed to new replies.