New answers tagged


Problems I get too many redirect: all urls redirect infinitely to themselves, why? Apache rewrite rules are processed top-to-bottom, so your custom rewrite rule is always processed first. The R redirect flag instructs the browser to make a new request to the altered URL instead of serving the destination of the rewrite at the current address - so ...


Please try <IfModule mod_rewrite.c> RewriteRule ^/privacy-policy/? privacy-policy [L,NC] RewriteCond %{HTTP_HOST} ^(www\.)?oldsite\.com [NC] RewriteRule ^{REQUEST_URI} [NE,R=301,L] </IfModule>


You can inject a made-up referer into WordPress’ HTTP request by filtering pre_http_request. All you need is a simple class like this (untested!): class FakeWpReferer { private $referer; private $url; private $is_regex; /** * @param string $referer * @param string $url URL to fake the referer for. * @param bool $is_regex ...


What happens when you visit /wp-login.php ? Is the .htaccess itself set with proper permissions? My wp-content, wp-admin, and wp-includes all have rwxr-xr-x / 0755 and my wp-login.php, .htaccess all are rw-r--r-- / 0644 Is this a fresh install? You can also check the server logs and the last resort, but perhaps the easiest, contact your host and have them ...


There is no built-in way to do it. The .htaccess is "printed in the screen" of the wp-admin ones you are setting up the multisite (the same for wp-config.php). That info is never write directly in .htaccess file like the single site. The wordpress core code for multisite / htaccess is here: ...


Your problem seems to be related with a misconfiguration of the temporary directory in PHP which is used for uploads and need to be writable when the sever downloads a WordPress, plugin or theme package. If you can not configure it at PHP level, you can define it also in wp-config.php file: define('WP_TEMP_DIR', ABSPATH . 'wp-content/temp/');

Top 50 recent answers are included