W3 Total Cache Minify Rewrite problem
-
I’ve googled a lot and searched for answers to my problem. But nothing so far.
I have a WordPress installation in this path: D:\wamp\www\projects\alpha\
The URL to my local webserver is: http://localhost/projects/alpha
I’m using WAMP on a Windows 7 machine (running Apache). I think this setup should be fairly common and nothing out of the ordinary.
So, to my problem. I’ve installed W3 Total Cache for page caching and css/js minifying. The page caching part works pretty well. Nothing to say there. But when trying to minifying, I think I’m running into some problems with the .htaccess files. At least that’s my guess.
I’ve manually added the theme CSS like this in the minify settings area:
projects/alpha/wp-content/themes/mytheme/style.cssClicking verify URI works, it shows the css file. But it will give warnings and errors when saving. It asks if the .htaccess file is allowed, and says that the test gave 404 error instead of OK.
This is the generated .htaccess file in the /wp-content/cache/minify folder:
# BEGIN W3TC Minify cache Options -MultiViews # END W3TC Minify cache # BEGIN W3TC Minify core <IfModule mod_rewrite.c> RewriteEngine On RewriteBase \projects\alpha/wp-content/cache/minify/ RewriteRule /w3tc_rewrite_test$ ../../plugins/w3-total-cache/pub/minify.php?w3tc_rewrite_test=1 [L] RewriteCond %{REQUEST_FILENAME}%{ENV:APPEND_EXT} -f RewriteRule (.*) $1%{ENV:APPEND_EXT} [L] RewriteRule ^(.+/[X]+\.css)$ ../../plugins/w3-total-cache/pub/minify.php?test_file=$1 [L] RewriteRule ^(.+\.(css|js))$ ../../plugins/w3-total-cache/pub/minify.php?file=$1 [L] </IfModule> # END W3TC Minify coreThis is the only modified .htaccess if I isolate the problem and only enable minify. In the HTML-code it prints this:
<link rel="stylesheet" type="text/css" href="http://localhost/projects/alpha/projects\alpha/wp-content/cache/minify/000000/56c92/default.include.b3c151.css" media="all" />Obviously it won’t find anything on that path, since it adds the root twice. What is wrong?
I’ve done some tests, and it seems that the .htaccess is in fact read (AllowOverride All). Since I can get it to generate Internal Server Error messages. So it’s used. So my guess is just that the generated .htaccess-files somehow are wrongly written.
Can anyone spot the error that I’m missing? Needless to say, I’ve not much experience with .htaccess and httpd.conf. I would be VERY greatful for any help, wasted many hours on this problem up until now.
The topic ‘W3 Total Cache Minify Rewrite problem’ is closed to new replies.