Hot answers tagged

2

Set the rules above the WordPress rules and use the [OR]/[AND] operators to concatenate RewriteRules (by default [AND] operator is used): RewriteCond %{REMOTE_ADDR} !^11\.111\.111\.111 [OR] RewriteCond %{REMOTE_ADDR} !^22\.222\.222\.222 [AND] RewriteCond %{REQUEST_URI} !^/maintenance\.html$ RewriteRule ^(.*)$ http://domain.com/maintenance.html [R=502,L] ...


1

How do we add a second IP address that is allowed to see the site in development? We can just append just second REMOTE_ADDR like this since the default flag is [AND] # BEGIN Maintenance <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REMOTE_ADDR} !^11\.111\.111\.11$ #First Address RewriteCond %{REMOTE_ADDR} ...


1

Using remove_action() can be remove unnecessary links for example: remove_action('wp_head', 'rsd_link'); //removes EditURI/RSD (Really Simple Discovery) link. remove_action('wp_head', 'wlwmanifest_link'); //removes wlwmanifest (Windows Live Writer) link. remove_action('wp_head', 'wp_generator'); //removes meta name generator. remove_action('wp_head', '...



Only top voted, non community-wiki answers of a minimum length are eligible