Closed bobbingwide closed 2 years ago
Thank you for debugging this!
@bobbingwide: I should mention that the new 0.22.0 release overwrites the .htaccess files (due to another fix). So your manual fix will be overwritten
I have fixed and released as 0.22.1.
In my Windows development environment the automatic redirection logic wasn't working as expected. Looking at the generated
.htaccess
files I noted that the file names in the Redirect section contained a mixture of forward slashes and backslashes.I believe this would prevent the RewriteRule from working. Changing the backslashes to forward slashes resolved the issue.
Explanation
In this installation ABSPATH is
C:\apache\htdocs\cwiccer/
Additionally, I've installed the plugin using a symlink toC:\apache\htdocs\wordpress\wp-content\plugins\webp-express
In the logic that generates the.htaccess
file(s) it would appear that not all backslashes are being converted to forward slashes.Proposed fix
In
lib/classes/PathHelper.php
change thecanonicalize
method to convert backslashes to forward slashes.