W3 Total Cache "Page Cache URL rewriting is not working.." error :Solved | The millenniumincome blogwww.millenniumincome.com

W3 Total Cache “Page Cache URL rewriting is not working..” error :Solved

W3 Total Cache

A common problem which people complain about:

“I’ve recently installed the W3 Total Cache Plug-in.. everything was fine except I came across this error message..”

It appears Page Cache URL rewriting is not working. If using apache, verify that the server configuration allows .htaccess or if using nginx verify all configuration files are included in the configuration and.. it was preventing my blog posts to cached (I tested it with a website speed tester..)

“This error appears once in a while just after upgrading W3TC, then mysteriously disappears again”

 

Still confused about the cause for that…?

I am so tired of reading this time and again. I had encountered it too, and solved it.So here today we will see the right solution to your problem. If you don’t understand coding it’s alright, just follow the instructions.

Solutions:

Please check the settings for W3 Total Cache  in WordPress admin panel>Performance> General settings> Page cache> page cache method> It can be set to Disk basic. But this isn’t the real solution.

When you change page cache to disk:basic all works fine and  message disappears but as per my information its better to set “Disk :Enhanced” for relieving server load.

The actual solution is to fix main .htaccess file in order for W3TC rules to be before WordPress rules.

To make disk enhanced work go below…There are 3 ways, one using SEO plugin, other directly through your host services or using FTP FileZilla. We will manually edit the .htaccess file – it’s very simple.

1st way to do it:

Please check the settings for w3 cache  in WordPress admin panel>Performance> General settings> Page cache> page cache method> Set it to be Disk enhanced.

Then if you are using Yoast SEO plugin……go to SEO in WordPress admin panel > Edit files

You will find the code in a box that you shall be editing. Your page will be something like below:

Yoast WordPress SEO: Files

.htaccess file

Edit the content of your .htaccess:

To enable disk enhanced  W3  page Cache commands should come above WordPress commands.

Look at the start of your code in the box: 

now check for the section

# BEGIN W3TC Page Cache core

…(code in between)

# END W3TC Page Cache core

Just select the entire code from # BEGIN W3TC Page Cache core to # END W3TC Page Cache core. Copy paste  this code in Microsoft word and delete it from the box. Now paste it back to the same box but at the beginning, right at top, making it the start of the code…

Illustration for above:

To enable disk enhanced  the code present below which I have highlighted in green should appear above code in red.

You shall copy paste the code in green above red and delete it from where it was originally ( you are interchanging the positions). I have highlighted the codes in red and green to make it easier for you. Your actual code will all be in black fonts. DON’ T DIRECTLY COPY THE CODE FROM HERE AT ALL – it’s not complete, – you have to edit your own code.

 # BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index
RewriteCond %{REQUEST_FILENAM
RewriteCond %{REQUEST_FI
RewriteRul
</IfModule>

 

# BEGIN W3TC Page Cache core
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^(.*\/)?w3tc_rewrite_test$ $1?w3tc_rewrite_test=1 [L]
RewriteCond %{HTTP:Accept-En
RewriteRule .* – [E=W3TC_ENC:_gzip]
RewriteCond %{REQUEST_ME
RewriteCond %{QUERY_STRING} =””
RewriteCond %{HTTP_HOST} =www.mi
RewriteCond %{REQUEST_URI} \/$ [OR]
RewriteCond %{REQUEST_URI} (sitemap(_i
RewriteCond %{REQUEST_
RewriteCond %{REQUEST_U
RewriteCond %{HTTP_COOK
RewriteCond %{HTTP_USER_AGENT} !(W3\ Total\ Cache/0\.9\.2\.4) [NC]
RewriteCond “%{DOCUME
RewriteRule .* “/wp-c{ENV:W3TC_SSL
RewriteCond %{REQU
RewriteCond %{QUERY_STRING} =””
RewriteCond %{H
RewriteCond %{REQUEST_URI} \/$ [OR]
RewriteCond %{REQUEST_
RewriteCond %{REQU\.php|inde [NC,OR]
RewriteCond %{REQUEST_URI}loc
RewriteCond %{HTTP_COOKIE} !(f0-9\]\
RewriteCond %{HTTP_USER
RewriteCond “%{DOCUMENT_ROOT}/
RewriteRule .* “/wp-content/w3tc/
</IfModule>
# END W3TC Page Cache core


(I AM REPEATING AGAIN: YOU WILL BE PASTING GREEN PART OF THE CODE RIGHT AT TOP IN THE BOX ABOVE RED..AND DELETING IT FROM WHERE IT WAS ORIGINALLY..I HOPE YOU UNDERSTAND. Before you take any action copy paste the entire code somewhere safely, In case you go wrong, you can just paste it back )

2nd way is through your cPanel login of your host:

W3 Total Cache

step 1: Go to file manager, click over file manager…

 

 

 

 

 

W3 Total Cache WordPress Plugins

step 2: Click over Go and then check for .htaccess file.

 

 

 

 

 

 

 

W3 Total Cache Settings

step 3: Right click and edit it. Here .htaccess is over right side.

You will be repeating exactly what I have asked you to do above..place the green code above red, just as I explained in illustration  and the 1st way, then save it. We Simply make sure that the ‘default’ .htaccess rules  are positioned as the last block in  .htaccess file.

 

 

3rd way is through FTP FileZilla:

For those who know how to use FTP already: File > site manager> connect….

W3 Total Cache WordPressstep 1: Click  over public_html file and open it.

(seen in grey)

 

step 2: You see here right below a  file .htaccess.

Right click  and Go to View/Edit.

 

step 3: Your .htaccess file is ready for editing. Edit it exactly as I have EXPLAINED ABOVE (1st way)and Save the changes.

 

Once you have done this the error messages of W3 Total Cache “Page Cache URL rewriting is not working for disk enhanced “ will disappear.

Please leave behind your precious thoughts, anything you have on mind! I would like to know what problem you had, if your problem was solved or not. I do go through all the comments.

Have a smiling day!

smile black

 

mickey

Attention: Go to  Settings for W3 Total Cache WordPress Plugin if you need help with W3 Total Cache settings.

Please cross check if your settings are proper. Correct settings really speed up your site and make a world of difference.

 

 

 

 

 

 

 

 

This Post links to the following sites:

http://yoast.com/w3-total-cache/

http://www.wpbeginner.com/plugins/how-to-install-and-setup-w3-total-cache-for-beginners/

 

 

 

Tags:

Facebook Comments:

Leave A Reply (1 comment so far)

*

CommentLuv badge

facebook twitterg+you tubePinterestRss
------------- how to make great videos
-------------
-------------
-------------
-------------

Get our latest articles delivered  to your email inbox and get the FREE Marketing Podcast Tutorial! | no spam policy

-------------
-------------
 Get optimizepress- best wordpress theme
-------------
-------------
-------------
-------------
-------------

categories

--------

Archives

-------------
--------
-------------------- ---------------------------
 
--------
-------------
-------------
-------------
-------------
how to make great videos
-------------
-------------
-------------
-------------

Follow Me on Pinterest

 
-------------
-------------
-------------
deals gif
-------------
-------------
-------------
------------- ------------- -------------
------------- ------------- ------------- -------------
------------- ------------- ------------- ------------- ------------- ------------- ------------- -------------
Download a FREE GUIDE

adobe photoshop

 

 
 
"Twitter tweet "facebook "Google plus "pinterest
MaxCDN Content Delivery Network

blog: business: networking: discovery: fun