[HelpMe] Redirection to /wp-content/cache/all/index.html
-
HelpMe
Redirection to /wp-content/cache/all/index.html
How to fix.
-
Thanks brother
- This reply was modified 7 years, 11 months ago by parkzaa.
you are welcome ?? if you vote, you make me so happy.
https://www.ads-software.com/support/plugin/wp-fastest-cache/reviews/?rate=5#new-post
Hello.
It doesn’t work for me.
I use
RewriteCond %{HTTPS} !=on RewriteCond %{REQUEST_URI} !wp-content\/(cache|wpfc-mobile-cache) RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
in my .htaccess and get again wp-content/cache/all//index.html after call http.
Please help.
please contact me via email: [email protected]
Hello Emre. After new attemts it working! After more changes I couldn’t see effekt in Firefox directly.
nice ??
Hello,
It doesn’t work for me too.
This is my htacces :
# BEGIN WpFastestCache <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} ^www.mywebsite.com [NC] RewriteRule ^(.*)$ http\:\/\/mywebsite\.com\/$1 [R=301,L] # Start WPFC Exclude RewriteCond %{REQUEST_URI} !csv [NC] # End WPFC Exclude RewriteCond %{HTTP_HOST} ^mywebsite.com RewriteCond %{HTTP_USER_AGENT} !(facebookexternalhit|WhatsApp|Mediatoolkitbot) RewriteCond %{REQUEST_METHOD} !POST RewriteCond %{HTTPS} !=on RewriteCond %{REQUEST_URI} !(\/){2}$ RewriteCond %{REQUEST_URI} \/$ RewriteCond %{QUERY_STRING} !.+ RewriteCond %{HTTP:Cookie} !wordpress_logged_in RewriteCond %{HTTP:Cookie} !comment_author_ RewriteCond %{HTTP:Cookie} !wp_woocommerce_session RewriteCond %{HTTP:Cookie} !safirmobilswitcher=mobil RewriteCond %{HTTP:Profile} !^[a-z0-9\"]+ [NC] RewriteCond %{REQUEST_URI} !wp-content\/cache\/(all|wpfc-mobile-cache) RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/all/$1/index.html -f [or] RewriteCond /home2/mywebsite/public_html/wp-content/cache/all/$1/index.html -f RewriteRule ^(.*) "/wp-content/cache/all/$1/index.html" [L] </IfModule> <FilesMatch "index\.(html|htm)$"> AddDefaultCharset UTF-8 <ifModule mod_headers.c> FileETag None Header unset ETag Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate" Header set Pragma "no-cache" Header set Expires "Mon, 29 Oct 1923 20:30:00 GMT" </ifModule> </FilesMatch> # END WpFastestCache
Is there something I should add ?
EDIT : Still have the problem, what is the workaround ? any example ???
- This reply was modified 7 years, 5 months ago by Florent.
@frappi, you have put into wrong place. You should not add it into WPFC’s rule. You should add it into your redirection rule.
Hi Emre,
Thanks for your answser and your great product. Unfortunnatly I’m unable to make this solution working.
As you can see I added :
RewriteCond %{REQUEST_URI} !wp-content\/cache\/(all|wpfc-mobile-cache)
Right before he 301 redir.:
RewriteRule ^/?$ "http\:\/\/mywebsite\.com\/" [R=301,L]
But it doesn’t work. Do you have a working example of the file ?
This is how my htaccess looks like :
Thanks!
# BEGIN WpFastestCache <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} ^www.mywebsite.com [NC] RewriteRule ^(.*)$ http\:\/\/mywebsite\.com\/$1 [R=301,L] # Start WPFC Exclude RewriteCond %{REQUEST_URI} !csv [NC] # End WPFC Exclude RewriteCond %{HTTP_HOST} ^mywebsite.com RewriteCond %{HTTP_USER_AGENT} !(facebookexternalhit|WhatsApp|Mediatoolkitbot) RewriteCond %{REQUEST_METHOD} !POST RewriteCond %{HTTPS} !=on RewriteCond %{REQUEST_URI} !(\/){2}$ RewriteCond %{REQUEST_URI} \/$ RewriteCond %{QUERY_STRING} !.+ RewriteCond %{HTTP:Cookie} !wordpress_logged_in RewriteCond %{HTTP:Cookie} !comment_author_ RewriteCond %{HTTP:Cookie} !wp_woocommerce_session RewriteCond %{HTTP:Cookie} !safirmobilswitcher=mobil RewriteCond %{HTTP:Profile} !^[a-z0-9\"]+ [NC] RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/all/$1/index.html -f [or] RewriteCond /home2/mywebsite/public_html/wp-content/cache/all/$1/index.html -f RewriteRule ^(.*) "/wp-content/cache/all/$1/index.html" [L] </IfModule> <FilesMatch "index\.(html|htm)$"> AddDefaultCharset UTF-8 <ifModule mod_headers.c> FileETag None Header unset ETag Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate" Header set Pragma "no-cache" Header set Expires "Mon, 29 Oct 1923 20:30:00 GMT" </ifModule> </FilesMatch> # END WpFastestCache # BEGIN GzipWpFastestCache <IfModule mod_deflate.c> AddType x-font/woff .woff AddOutputFilterByType DEFLATE image/svg+xml AddOutputFilterByType DEFLATE text/plain AddOutputFilterByType DEFLATE text/html AddOutputFilterByType DEFLATE text/xml AddOutputFilterByType DEFLATE text/css AddOutputFilterByType DEFLATE text/javascript AddOutputFilterByType DEFLATE application/xml AddOutputFilterByType DEFLATE application/xhtml+xml AddOutputFilterByType DEFLATE application/rss+xml AddOutputFilterByType DEFLATE application/javascript AddOutputFilterByType DEFLATE application/x-javascript AddOutputFilterByType DEFLATE application/x-font-ttf AddOutputFilterByType DEFLATE application/vnd.ms-fontobject AddOutputFilterByType DEFLATE font/opentype font/ttf font/eot font/otf </IfModule> # END GzipWpFastestCache # BEGIN LBCWpFastestCache <FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|webp|js|css|swf|x-html|css|xml|js|woff|woff2|ttf|svg|eot)(\.gz)?$"> <IfModule mod_expires.c> AddType application/font-woff2 .woff2 ExpiresActive On ExpiresDefault A0 ExpiresByType image/webp A2592000 ExpiresByType image/gif A2592000 ExpiresByType image/png A2592000 ExpiresByType image/jpg A2592000 ExpiresByType image/jpeg A2592000 ExpiresByType image/ico A2592000 ExpiresByType image/svg+xml A2592000 ExpiresByType text/css A2592000 ExpiresByType text/javascript A2592000 ExpiresByType application/javascript A2592000 ExpiresByType application/x-javascript A2592000 ExpiresByType application/font-woff2 A2592000 </IfModule> <IfModule mod_headers.c> Header set Expires "max-age=2592000, public" Header unset ETag Header set Connection keep-alive FileETag None </IfModule> </FilesMatch> # END LBCWpFastestCache # Use PHP7 Single php.ini as default AddHandler application/x-httpd-php70s .php # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress # BEGIN HTTP redirection RewriteEngine On RewriteCond %{HTTPS} !on RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} # END HTTP redirection # BEGIN URL Canonicalization Issue RewriteCond %{HTTPS_HOST} ^www\.mywebsite\.com$ RewriteCond %{REQUEST_URI} !wp-content\/cache\/(all|wpfc-mobile-cache) RewriteRule ^/?$ "http\:\/\/mywebsite\.com\/" [R=301,L]
You should add the line as below.
# BEGIN HTTP redirection RewriteEngine On RewriteCond %{HTTPS} !on RewriteCond %{REQUEST_URI} !wp-content\/cache\/(all|wpfc-mobile-cache) RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} # END HTTP redirection # BEGIN URL Canonicalization Issue RewriteCond %{HTTPS_HOST} ^www\.mywebsite\.com$ RewriteCond %{REQUEST_URI} !wp-content\/cache\/(all|wpfc-mobile-cache) RewriteRule ^/?$ "http\:\/\/mywebsite\.com\/" [R=301,L]
Thanks for the example, it works but I lost 301 redirection from
mywebsite.com
tohttps://mywebsite.com
. Redirection fromhttps://
tohttps://
still works.- This reply was modified 7 years, 4 months ago by Florent.
please contact me via email: https://www.wpfastestcache.com/contact-us/
Same problem here:
We have this:
RewriteEngine On RewriteCond %{HTTPS} off RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$ RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$ RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$ RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
to redirect all entries from http to https
After seeing some entries redirected to /wp-content/cache/all/index.html I’ve added the line in this way:RewriteEngine On RewriteCond %{HTTPS} off RewriteCond %{REQUEST_URI} !wp-content\/cache\/(all|wpfc-mobile-cache) RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$ RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$ RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$ RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
I don’t get anymore the redirections to https. Any idea why?
[Moderator note: code fixed. Please wrap code in the backtick character or use the code button.]
- The topic ‘[HelpMe] Redirection to /wp-content/cache/all/index.html’ is closed to new replies.