My .htaccess is pretty big and contains many ModRewrite conditions, mainly thanks to perishablepress.com/8g-firewall/
I have been told that at least some part of this Apache firewall is not compatible with LiteSpeed, particularly my hosting provider suggested replacement of a 8G .htaccess line:
by:
(removed 3 backslashes on the beginning)
saying "made the server silently ignore the whole block". That seems serious. Question is what they mean by whole block, if it is a line or also all following lines (or also preceding) lines till the last line " RewriteRule .* - [F]"
Full 8G I have pasted here for convenience: justpaste.it/gbc2e
I have been thinking if i should create some overriding rule on the top of my .htaccess so on next .htaccess firewall code update, when i paste non working rules, it will override those non working.
Second question as a total newbie with zero regular expression knowledge is:
Please how to exactly debug (not being server admin), if and where exactly there is any syntax error according to LiteSpeed. I know how to enable PHP error logging using .htaccess, but that is likely not it?
litespeedtech.com/docs/webserver/config/rewrite#rewriteLogLevel
I have been told that at least some part of this Apache firewall is not compatible with LiteSpeed, particularly my hosting provider suggested replacement of a 8G .htaccess line:
RewriteCond %{QUERY_STRING} (;|<|>|\'|\"|\)(%0a|%0d|%22|%27|%3c|%3e|%00)(.*)(/\*|alter|base64|benchmark|cast|concat|convert|create|encode|declare|delay|delete|drop|hex|insert|load|md5|null|replace|request|script|select|set|sleep|truncate|unhex|update) [NC,OR]
RewriteCond %{QUERY_STRING} (;|<|>|'|"|)(%0a|%0d|%22|%27|%3c|%3e|%00)(.*)(/\*|alter|base64|benchmark|cast|concat|convert|create|encode|declare|delay|delete|drop|hex|insert|load|md5|null|replace|request|script|select|set|sleep|truncate|unhex|update) [NC,OR]
saying "made the server silently ignore the whole block". That seems serious. Question is what they mean by whole block, if it is a line or also all following lines (or also preceding) lines till the last line " RewriteRule .* - [F]"
Full 8G I have pasted here for convenience: justpaste.it/gbc2e
I have been thinking if i should create some overriding rule on the top of my .htaccess so on next .htaccess firewall code update, when i paste non working rules, it will override those non working.
Second question as a total newbie with zero regular expression knowledge is:
Please how to exactly debug (not being server admin), if and where exactly there is any syntax error according to LiteSpeed. I know how to enable PHP error logging using .htaccess, but that is likely not it?
litespeedtech.com/docs/webserver/config/rewrite#rewriteLogLevel