AMPforWP Extensions

AMPforWP Extensions 08-13-2023

No permission to download

chm

New member
Oct 23, 2019
17
6
3
WARNING: ampforwp-purge-cdn-cache-2.0.3 crashed my site. Even if I remove all plugins I still have 500 Internal Server Error
 

tanierlyons

Well-known member
Staff member
Administrative
Moderator
May 24, 2018
75,065
111,714
120
WARNING: ampforwp-purge-cdn-cache-2.0.3 crashed my site. Even if I remove all plugins I still have 500 Internal Server Error
so its seems this plugin oweright your htaccess
please check htaccess
 
  • Like
Reactions: chm

chm

New member
Oct 23, 2019
17
6
3
so its seems this plugin oweright your htaccess
please check htaccess
You are 100% right !

Here is what the plugin append to .htaccess :

<Files "apikey.pub">
AddType text/plain .pub
Header add Cache-Control "max-age=300, public"
SetEnvIfNoCase User-Agent .*google.* search_robot
SetEnvIfNoCase User-Agent .*yahoo.* search_robot
SetEnvIfNoCase User-Agent .*bot.* search_robot
SetEnvIfNoCase User-Agent .*ask.* search_robot
Allow from env=search_robot
</Files>

So, what to edit here to make the plugin work properly ?

Thanks
 

tanierlyons

Well-known member
Staff member
Administrative
Moderator
May 24, 2018
75,065
111,714
120
You are 100% right !

Here is what the plugin append to .htaccess :

<Files "apikey.pub">
AddType text/plain .pub
Header add Cache-Control "max-age=300, public"
SetEnvIfNoCase User-Agent .*google.* search_robot
SetEnvIfNoCase User-Agent .*yahoo.* search_robot
SetEnvIfNoCase User-Agent .*bot.* search_robot
SetEnvIfNoCase User-Agent .*ask.* search_robot
Allow from env=search_robot
</Files>

So, what to edit here to make the plugin work properly ?

Thanks
no idea but this is defult htaccess
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
 
  • Like
Reactions: chm

chm

New member
Oct 23, 2019
17
6
3
no idea but this is defult htaccess
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

This exist in .htaccess alongside the other code. But still not working. If I remove the code appended by the plugin, the website works, but I'm not sure if the plugin itself is working :)
I will remove it :)

Thank you for the reply Mr. Tomz
 

About us

  • Our community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day to make sure our community is one of the best.

Quick Navigation

User Menu