Support » Plugin: Page Speed Optimization » CSS Styles Not Loaded if Login Page URL is Changed

  • Resolved Firman Nugraha


    The default path for login is wp-login.php. If for security reason the login path is chaged to another URL, the CSS for the login page won’t be loaded becuase of the plugin. When I revert to normal login path, the CSS was loaded normally.

    Is there a setting to enable CSS delivery for custom login path or is this a bug?

Viewing 1 replies (of 1 total)
  • Plugin Author


    Hi jfireman,

    Thank you for reporting the issue!

    The used method for checking if the request is for the login page is the following:

     * Register or login page
    if (isset($GLOBALS['pagenow']) && in_array($GLOBALS['pagenow'], array('wp-login.php', 'wp-register.php'))) {
        return false;

    It is the official method.

    If you use a custom solution, it would be possible to manually disable the plugin using the following code:

    define('DONOTABTF', true);

Viewing 1 replies (of 1 total)
  • The topic ‘CSS Styles Not Loaded if Login Page URL is Changed’ is closed to new replies.