htaccess bug with WP in subdir
-
Ohai, I think I found a bug in the .htaccess file generation when the wp install resides in a subdir in htdocs dir.
like http(s)://subdomain.domain.tld/wordpress/
While all checkmarks in the settings tab are green it still complains about failed queue queries, which I can see as 404s in the server log.
Manually “patching” the rewirte rules solves the problem, but generates warnings regarding incorrect .htaccess contents.
--- .htaccess_bak 2023-10-25 10:31:15.404281317 +0200 +++ .htaccess 2023-10-25 10:49:46.860465248 +0200 @@ -43,7 +43,7 @@ RewriteCond %{HTTP_ACCEPT} !image/webp RewriteCond %{REQUEST_FILENAME} cache/fastware-webpavif/.+\.webp$ [NC] RewriteCond %{REQUEST_FILENAME}.png !-f - RewriteRule .* /wordpress?fw-webp-avif-ondemand=png [L] + RewriteRule .* /wordpress/index.php?fw-webp-avif-ondemand=png [L] # serve original image RewriteCond %{REQUEST_FILENAME} cache/fastware-webpavif/.+\.(jpe?g|png|gif|bmp|webp)$ [NC] @@ -53,7 +53,7 @@ # queue convert image RewriteCond %{REQUEST_FILENAME} cache/fastware-webpavif/.+\.(jpe?g|png|gif|bmp|webp)$ [NC] RewriteCond %{REQUEST_FILENAME} !-f - RewriteRule .* /wordpress?fw-webp-avif-ondemand=all [L] + RewriteRule .* /wordpress/index.php?fw-webp-avif-ondemand=all [L]
- The topic ‘htaccess bug with WP in subdir’ is closed to new replies.