Forum Moderators: phranque
"somecode_in_the_htaccess_file" # this comment tossed 500 errors for the line.
But these examples are not legit, and will produce an error:
ExpiresActive on # this will trigger an error
RedirectMatch 403 /spamhole/ # this will trigger an error
# this will
trigger an error
am on Unix.. not Windows server... at least that is what is has been..That may actually be relevant, because windows line breaks are CRLF (\r\n) while unix line breaks are LF (\n) alone, and possibly it applied its own definition of what constitutes a new line.
Have I been wrong all this time..Apparently so, but at least it's an easy global replace.
That may actually be relevant, because windows line breaks are CRLF (\r\n) while unix line breaks are LF (\n) alone, and possibly it applied its own definition of what constitutes a new line.
for like.. 19 years now.... I "appended" the "#" comment to the line
in the htaccess file... never a problem.
or Mac.. which puts \r\n when you hit the "enter" button on the keyboard.Classic Mac used CR (\r) alone. OS X, being unix-based, uses LF (\n) alone. (The \r form is troublesome because not all RegEx engines recognize it as a line break; it's just another character in the \s family. In fact \r\n may not be recognized as line-final for anchoring purposes.) Does Enter on the numeric keypad create \r\n on some OS versions? I just checked; mine doesn't.