(here).' ); } else { $rulesResult = HTAccess::saveRules($config, false); $rulesSaveSuccess = $rulesResult[0]; if ($rulesSaveSuccess) { Messenger::addMessage( 'success', 'WebP Express re-activated successfully.
' . 'The image redirections are in effect again.

' . 'Just a quick reminder: If you at some point change the upload directory or move Wordpress, ' . 'the .htaccess files will need to be regenerated.
' . 'You do that by re-saving the settings ' . '(here)' ); } else { Messenger::addMessage( 'warning', 'WebP Express could not regenerate the rewrite rules
' . 'You need to change some permissions. Head to the ' . 'settings page ' . 'and try to save the settings there (it will provide more information about the problem)' ); } HTAccess::showSaveRulesMessages($rulesResult); } } private static function activateFirstTime() { // First check basic requirements. // ------------------------------- if (PlatformInfo::isMicrosoftIis()) { Messenger::addMessage( 'warning', 'You are on Microsoft IIS server. ' . 'WebP Express should work on Windows now, but it has not been tested thoroughly.' ); } if (!version_compare(PHP_VERSION, '5.5.0', '>=')) { Messenger::addMessage( 'warning', 'You are on a very old version of PHP. WebP Express may not work correctly. Your PHP version:' . phpversion() ); } // Next issue warnings, if any // ------------------------------- if (PlatformInfo::isApache() || PlatformInfo::isLiteSpeed()) { // all is well. } else { Messenger::addMessage( 'warning', 'You are not on Apache server, nor on LiteSpeed. WebP Express only works out of the box on Apache and LiteSpeed.
' . 'But you may get it to work. WebP Express will print you rewrite rules for Apache. You could try to configure your server to do similar routing.
' . 'Btw: your server is: ' . $_SERVER['SERVER_SOFTWARE'] ); } // Welcome! // ------------------------------- Messenger::addMessage( 'info', 'WebP Express was installed successfully. To start using it, you must ' . 'configure it here.' ); } }