.htaccess 500 Server Error: CTA Plugin, Quick Cache, or typo?
-
I have two issues to resolve:
#1
Yesterday I installed the Quick Cache plugin and as directed by the settings added this to my .htaccess file:# Begin Quick Cache <IfModule mod_deflate.c> <IfModule mod_filter.c> AddOutputFilterByType DEFLATE text/plain text/html application/x-httpd-php-source AddOutputFilterByType DEFLATE text/xml application/xml application/xhtml+xml application/xml-dtd AddOutputFilterByType DEFLATE application/rdf+xml application/rss+xml application/atom+xml image/svg+xml AddOutputFilterByType DEFLATE text/css text/javascript application/javascript application/x-javascript AddOutputFilterByType DEFLATE font/truetype application/x-font-ttf font/opentype application/x-font-otf </IfModule> </IfModule> # End Quick Cache
When I woke up this morning the site was down with this error:
“Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.”
My host was able to determine the error was being caused by something in the .htaccess file. They renamed it to .htaccess.old and it works now. So I took a look at the file and the code I put in last night has changed to this:
# Begin Quick Cache <IfModule mod_deflate.c> <IfModule mod_filter.c> # BEGIN WordPress
I also noticed two other things. Here’s the full copy of .htaccess.old. I’ll describe the other two after it copy it in.
# BEGIN s2Member GZIP exclusions <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{QUERY_STRING} (^|\?|&)s2member_file_download\=.+ [OR] RewriteCond %{QUERY_STRING} (^|\?|&)no-gzip\=1 RewriteRule .* - [E=no-gzip:1] </IfModule> # END s2Member GZIP exclusions # Begin Quick Cache <IfModule mod_deflate.c> <IfModule mod_filter.c> # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{QUERY_STRING} !wp-cta-variation-id RewriteRule ^cta/([^/]*)? /wp-content/plugins/cta/modules/module.redirect-ab-testing.php?permalink_name=$1 [QSA,L] RewriteRule ^wp-call-to-action=([^/]*)? /wp-content/plugins/cta/modules/module.redirect-ab-testing.php?permalink_name=$1 [QSA,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress che # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{QUERY_STRING} !wp-cta-variation-id RewriteRule ^cta/([^/]*)? /wp-content/plugins/cta/modules/module.redirect-ab-testing.php?permalink_name=$1 [QSA,L] RewriteRule ^wp-call-to-action=([^/]*)? /wp-content/plugins/cta/modules/module.redirect-ab-testing.php?permalink_name=$1 [QSA,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress
So the second thing I noticed was this:
# END WordPress che # BEGIN WordPress
The “che” is a typo right? that’s not supposed to be there. would that be causing the 500 Server Error?
Finally, #2 AND THIS IS IMPORTANT TO ME AS WELL:
The WordPress Calls to Action plugin has been having issues lately. The problem: When ever I clicked on the CTA’s submit button it would time out on the redirect. The plugin developer said this was because I was running too many plugins. long story short I noticed that there are TWO sections of cta redirect in this htaccess file. Are they both supposed to be there? The hosting company asked about it specifically saying:
I asked that because the .htaccess had some coding about that specific plugin:
RewriteCond %{QUERY_STRING} !wp-cta-variation-id RewriteRule ^cta/([^/]*)? /wp-content/plugins/cta/modules/module.redirect-ab-testing.php?permalink_name=$1 [QSA,L] RewriteRule ^wp-call-to-action=([^/]*)? /wp-content/plugins/cta/modules/module.redirect-ab-testing.php?permalink_name=$1 [QSA,L] RewriteCond %{REQUEST_FILENAME} !-f
So what is going on guys?
Can you help me to figure out if the Quick Cache is working properly and that code was supposed to disappear?
What caused the 500 error?
And what do you think was resulting in my cta timing out?P.S. –I’m not sure if it was CTA or GC Message Bar or GC Message box (which I had just installed and was setting up when the cta thing started happening because I clicked my cta submit button to go get a copy of the submit-redirect URL for the GC plugins to use), which caused me to have to repair and optimize my database a few times yesterday. Every time I clicked the cta submit button and things froze, the site would die and I’d have to repair and optimize the DB then wait for throttling to stop before the site would be live again.
________________________________________________________________
https://www.ads-software.com/plugins/quick-cache/
https://www.ads-software.com/plugins/cta/
- The topic ‘.htaccess 500 Server Error: CTA Plugin, Quick Cache, or typo?’ is closed to new replies.