ibrah
Forum Replies Created
-
Forum: Plugins
In reply to: [W3 Total Cache] conflict in htacess with redirection pluginHi @vmarko ,
sorry for the delay, I had some trouble trying to disable the W3TC plugin but after deactivating it and removing all related lines from the .htaccess file the url’s of my site are back to normality.
Here is the current working .htaccess:RewriteCond %{HTTP_HOST} ^condospalillos\.com$ [OR] RewriteCond %{HTTP_HOST} ^www\.condospalillos\.com$ RewriteCond %{REQUEST_URI} !^/\.well-known/cpanel-dcv/[0-9a-zA-Z_-]+$ RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/(?:\ Ballot169)? RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Sectigo\ DCV)?$ RewriteRule ^(.*)$ "https\:\/\/www\.condospalillos\.com\/$1" [R=301,L] RewriteCond %{HTTP_HOST} ^condospalillos\.theoriginalgramer\.com$ [OR] RewriteCond %{HTTP_HOST} ^www\.condospalillos\.theoriginalgramer\.com$ RewriteCond %{REQUEST_URI} !^/\.well-known/cpanel-dcv/[0-9a-zA-Z_-]+$ RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/(?:\ Ballot169)? RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Sectigo\ DCV)?$ RewriteRule ^(.*)$ "https\:\/\/www\.condospalillos\.com\/$1" [R=301,L] ##### ##### # 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
My plan from here is to activate the plugin again and enable each feature one at a time checking the urls behavior and reviewing the content of the .htaccess file and order of the rules to try to spot the source of the problem.
Any other suggestions or guidance on how to proceed will be super welcome.
Thanks again for your time and your attention.Forum: Plugins
In reply to: [W3 Total Cache] conflict in htacess with redirection pluginHi @vmarko ,
Just some followup questions, did the issue start to occur after you installed the redirect plugin?
No, in deed it was the other way around. I had redirect working for a few months without any trouble. And also worked fine with W3TC until minify option was enabled. Then the urls changed.
is the “Cache SSL (HTTPS) requests” option enabled?
Yes, it is enabled.
Thanks.
Forum: Plugins
In reply to: [W3 Total Cache] conflict in htacess with redirection pluginHi @vmarko , thanks for your attention.
Yes,I edited the file adding those lines at the beginning of the file. They were not there.I’ve tried a few combination since yesterday with different results so far.
- Removing the rules below #END WordPress resulted in the right urls but without any style or javascript and a lot of red messages in the browser console.
- Adding those same rules to the very top of the file, before # BEGIN Force HTTPS , resulted in the expected urls and perfect display of the home but 404 errors in the rest of the content.
- Same result when those rules are before # BEGIN W3TC Browser Cache
- Also with those rules in the top and removing:
# BEGIN Force HTTPS <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] </IfModule> #END Force HTTPS <IfModule mod_headers.c> <FilesMatch "\.(js|css|xml|gz)$"> Header append Vary: Accept-Encoding </FilesMatch> </IfModule>
Not very sure on how to proceed here. Any suggestions will be really appreciated.