Ok, I have disabled both plugins. Cleaned up the WP-Cache thing completely. The “Cache/meta” folder was giving permissions problems so I deleted it as root user. All htaccess files from strange folders are deleted.
The site works fresh. Without caching. All links checked, from categories, to individual posts to indexes and RSS.
Now I re-enable SuperCache and it doesn’t work. Some of the links are not working either. I guess this has to do with the mod_rewrite rules that SuperCache is absolutely miserable with.
My site structure:
WP admin: https://domain.com/wpcms/wp-admin
Blog: https://domain.com/site/
In my root folder for the domain.com site, I have this .htaccess:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /site/
RewriteCond %{QUERY_STRING} !.*s=.*
RewriteCond %{HTTP_COOKIE} !^.*comment_author_.*$
RewriteCond %{HTTP_COOKIE} !^.*wordpressuser.*$
RewriteCond %{HTTP_COOKIE} !^.*wp-postpass_.*$
RewriteCond %{HTTP:Accept-Encoding} gzip
RewriteCond %{DOCUMENT_ROOT}/site/wp-content/cache/supercache/%{HTTP_HOST}/site/$1index.html.gz -f
RewriteRule ^(.*) /site/wp-content/cache/supercache/%{HTTP_HOST}/site/$1index.html.gz [L]
RewriteCond %{QUERY_STRING} !.*s=.*
RewriteCond %{HTTP_COOKIE} !^.*comment_author_.*$
RewriteCond %{HTTP_COOKIE} !^.*wordpressuser.*$
RewriteCond %{HTTP_COOKIE} !^.*wp-postpass_.*$
RewriteCond %{DOCUMENT_ROOT}/site/wp-content/cache/supercache/%{HTTP_HOST}/site/$1index.html -f
RewriteRule ^(.*) /site/wp-content/cache/supercache/%{HTTP_HOST}/site/$1index.html [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /wpcms/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wpcms/index.php [L]
</IfModule>
The WPCMS is working fine. I can admin.
The main page on the SITE is working fine too. Index page, that is. But none of the individual posts and categories are working. What gives?
I would like to do this with .htaccess in the main root folder, which should handle the rewrite rules just fine for all these folders. Because I will ultimately have about 15 blogs and I don’t want a labyrinth of different unmaintainable .htaccess rules in different virtual folders.
Thanks for any tips or advice!