403 forbidden when changing settings on WP Multisite non-main sites

I had the same problem – I found the rules in Apache modsecurity that include a set of exclusions for WordPress didn’t cover /network/site-settings.php, so I could do everything except edit sites in my multisite setup. In the file /usr/share/modsecurity-crs/rules/REQUEST-903.9002-WORDPRESS-EXCLUSION-RULES.conf I added the following lines: SecRule REQUEST_FILENAME “@endsWith /wp-admin/network/site-settings.php” \ “id:9009999,\ phase:1,\ pass,\ t:none,\ nolog,\ … Read more

Default plugin config to override wp_options?

You could check which options they add (look at the source code) and then simply write a function like this: /* Plugin Name: Mother of all plugins Plugin URI: http://wordpress.org/extend/plugins/ Description: Offers the <code>$all_plugin_options;</code> var to access all predefined plugin options Author: Franz Josef Kaiser Author URI: http://say-hello-code.com Version: 0.1 License: GPL v2 – http://www.gnu.org/licenses/old-licenses/gpl-2.0.html … Read more

Show wordpress locally in xammp and in iPhone via ip

You can adapt the site url which is stored in the database based on what domain you are viewing the site from. Add the following to wp-config.php: define( ‘WP_HOME’, ‘http://’ . $_SERVER[‘HTTP_HOST’] . ‘/yourwebsitename’ ); define( ‘WP_SITEURL’, WP_HOME ); If you use a subdirectory install (ie: you view the site from http://192.168.0.2/yourwebstename but the WordPress … Read more