cpuprogramme / cpu-15

Dotclear theme for radio show C.P.U.
2 stars 1 forks source link

Recent bug with redirections #88

Closed dascritch closed 1 year ago

dascritch commented 1 year ago

Since a previous upgrade from Apache occurring last month, links with spaces aren't working anymore. Mainly, series are not transforming spaces from title in a slug. So series as /serie/Bio%20is%20the%20new%20Black or tags /tag/moteur%20de%20recherche aren't working anymore

Logs tells :

 [rewrite:error] AH10411: Rewritten query string contains control characters or spaces

My blog is parametered to redirect URL to "index.php?" with a query string

and with that special rule

RewriteCond %{REQUEST_URI} !/\/a…/
RewriteCond %{REQUEST_URI} !/\/d…/
RewriteCond %{REQUEST_URI} !/*.\.php/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule "(.*)" "/index.php?$1" [QSA,L]

Even modifiying flags [QSA,L] for [QSA,L,B] isn't working

dascritch commented 1 year ago

Recent security fix Some interesting informations :

dascritch commented 1 year ago

Flag "BNP" with "B" resolves it https://httpd.apache.org/docs/2.4/rewrite/flags.html#flag_bnp