Hello,
I have trouble with NGINX and Wordpress rewrite, it works with my configuration but on wp-admin i have to many redirects:
My htaccess before:
My nginx directive:
Whats the problem here? I have generated this with the plesk extension.
Thanks
I have trouble with NGINX and Wordpress rewrite, it works with my configuration but on wp-admin i have to many redirects:
My htaccess before:
Code:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
My nginx directive:
Code:
if (!-f $request_filename){
set $rule_1 1$rule_1;
}
if (!-d $request_filename){
set $rule_1 2$rule_1;
}
if ($rule_1 = "21"){
rewrite /. /index.php last;
}
Whats the problem here? I have generated this with the plesk extension.
Thanks