Ajax request raised from WordPress logged in user works properly. But non-logged in user ajax request fails with 403 forbidden. We tried the following solution: https://wordpress.org/support/topic/admin-ajax-php-403-forbidden-2/ https://wordpress.stackexchange.com/questions/345194/403-forbidden-you-dont-have-permission-to-access-wp-admin-admin-ajax-php-on
Our site connected to Azure AD. Redirect to our server. .config file
ServerAdmin ****
DocumentRoot /var/www/html
ServerName blog.xxxx.com
ServerAlias blog.xxx.com
Redirect permanent / https://domain/blogs
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
<VirtualHost *:443>
ServerAdmin ***
ServerName blog.xxx.com
DocumentRoot /var/www/html
SSLEngine on
SSLCertificateFile certificate.crt
SSLCertificateKeyFile privatekey.key
<Directory /var/www/html/>
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>```
Settings > WP Super Cache > Advanced (tab)
scroll down to Cache Timeout change 3600 to 1800 or use lower value and click
Change Expiration
This should help
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With