Error codes: rewrites_not_working | WordPress.org

[ad_1]

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

@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

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:

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer