WordPress multisite subdirectory on nginx behind reverse proxy

The problem was the sql database that did not update urls. I do not know if there is a way to do this easily but I feel like I have looked everywhere for this solution and finally found it with this answer to a somewhat similar question : https://premium.wpmudev.org/forums/topic/how-to-change-url-for-wp-multi-site#post-426799 I started over from where everything … Read more

Custom rewrite rule sends 404 header on multisite

Basically, you are doing one thing wrong, which is actually having a file named manifest.json inside /wp-content/themes/your-theme. So, first, delete your file /wp-content/themes/your-theme/manifest.json. Then, in your functions.php file you can have your rewrite rule as: function fvpd_pwa_rewrite_rules() { add_rewrite_endpoint( “manifest”, EP_NONE ); add_rewrite_rule( substr( parse_url( get_template_directory_uri(), PHP_URL_PATH ), 1 ) . “/manifest.json/?$”, “index.php?manifest=true”, “top” ); … Read more

Remove filter from WordPress Plugin

You can’t just add remove_filter() and have it remove the filters. remove_filter() always has to happen after the callback you want to remove is added. Your remove_filter() call is most likely run before the plugin’s add_filter(). You need to find where/when that plugin hooks canonicalize_front_end() and then run your removal accordingly (i.e. at or after … Read more