installing apache and mod_rewrite

so…install apache2 and get

Invalid command ‘RewriteEngine’, perhaps misspelled or defined by a module not included in the server configuration

no matter what you do to try and compile it in?  Try doing make clean, then –enable-rewrite as your parameters to configure.  Worked for me, now to configure it…

One thought on “installing apache and mod_rewrite

  1. WITHIN the folder directive (if it never works), put

    RewriteEngine On
    RewriteLog /home/byu_p2pweb/rewritelog
    RewriteRule ^(\d+)K\.file.*$ $1K.file [L]
    RewriteRule ^go.html$ go2.html [L]
    RewriteRule ^page.html$ new_page.html [R,NC,L]

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>