httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Kew <>
Subject Re: [users@httpd] redirect port from 80 to 443
Date Mon, 20 Feb 2017 08:01:17 GMT
On Sun, 2017-02-19 at 20:27 +0300, Marat Khalili wrote:

> "When not to use mod_rewrite" page was probably written by people
> frustrated with too many examples of incorrect mod_rewrite
> configurations in this forum.

Actually it was largely written by the same people who wrote the
mod_rewrite documentation.

Twenty years ago, mod_rewrite was a fantastic tool: powerful
and versatile.  Today it's even more powerful and versatile.

But it's also a horrendously *bad* way to accomplish most things:
in non-trivial cases, it's commonly used as a hacked-up
scripting language comprisising just two main instructions
(single IF aka RewriteCond, and GOTO aka RewriteRule) with

Which is why we recommend rationalising away from those
ancient mod_rewrite hacks that were once the only way to
accomplish something but are now obsolete.

By analogy, when I got my first programming job in the 1980s,
there was still lots of ancient FORTRAN around, from before the
FORTRAN-77 standard brought block structure to that language.
We newbies were NOT encouraged to write old-style spaghetti code.

Nick Kew

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message