Hi @francpranz,
Thank you for your message. I am sorry you have encountered a problem with our plugin. Do not worry, I will try to help you.
What rule is it? Which rule causes the block? I will be grateful for additional information.
What hosting are you using?
Best,
Mateusz
Additionally, I noticed something strange in your server configuration.
Namely, the root directory of your WordPress is:
/home/…/public_html
And the /wp-content directory is in the path:
/home2/…/public_html/wp-content
What does this approach mean?
Try adding the following code to the functions.php file in your theme directory:
add_filter( 'webpc_htaccess_rewrite_root', function ( $path ) {
return str_replace( '%{DOCUMENT_ROOT}/home2/', '/home2/', $path );
} );
Does this solve the problem?
Unfortunately I don’t know which rule causes the block. However I tried to add the code to the functions.php but the problem doesn’t seem to be solved.
I’m attaching again the help center screen with the new code on the functions.php https://ibb.co/gwXGSGJ
@francpranz Are you sure you added this code in the right place? It looks like it’s not loaded.
I added it to the child theme’s functions.php.
I sent you the old screenshot. Excuse me
This is the new one https://ibb.co/KjPZhMc
Thank you. Please add this code additionally:
add_filter( 'webpc_htaccess_rewrite_path', function ( $path ) {
return '/';
} );
It’s working now. Thanks!
@francpranz, thank you for confirming!
We will be grateful if you leave your feedback about our plugin here: https://ww.wp.xz.cn/support/plugin/webp-converter-for-media/reviews/