• The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Nginx with custom permalinks - Wp-login.php - Too many redirects

Xavier12

Regular Pleskian
Hey guys,

For some reason we are having nginx issues. We've used apache to nginx converter and custom permalinks do work, however, when logging in to Wordpress dashboard, we receive a "too many redirects" error. It seems to only work when we type in: http://domain.com/wp-admin/index.php

Code:
#ignored: "-" thing used or unknown variable in regex/rew

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;
}

Please advise, thanks.
 
What worked for my was adding a rule specifically targeting the /wp-admin folder

#ignored: "-" thing used or unknown variable in regex/rew

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 ^/wp-admin/(.*)\.php$ /wp-admin/$1.php last; #<==== this line

rewrite /. /index.php last;

}
 
Back
Top