Changes between Version 3 and Version 4 of internet_rights_workshop/setup


Ignore:
Timestamp:
Jan 17, 2009, 3:29:34 PM (11 years ago)
Author:
Daniel Kahn Gillmor
Comment:

added mod_rewrite rules

Legend:

Unmodified
Added
Removed
Modified
  • internet_rights_workshop/setup

    v3 v4  
    4848                Order allow,deny
    4949                allow from all
     50
     51                RewriteEngine on
     52                RewriteBase /
     53
     54                RewriteRule ^state$ ?area=state
     55                RewriteRule ^board$ ?mode=board
     56                RewriteRule ^right([[:digit:]]*)$ ?area=right&mode=edit&rid=$1&%{QUERY_STRING}
     57                RewriteRule ^endorse$ ?area=right&mode=endorse
     58                RewriteRule ^rescind$ ?area=right&mode=rescind
     59                RewriteRule ^lang.([[:alpha:]_-]+)$ ?lang=$1
     60
    5061        </Directory>
    5162
     
    6071}}}
    6172
    62 On debian systems, you would enable this virtual host with:
     73On debian systems, you would enable this virtual host and make sure that mod_rewrite is working with:
    6374
    6475{{{
    6576sudo a2ensite ir.test
     77sudo a2enmod rewrite
     78sudo /etc/init.d/apache2 restart
    6679}}}
    6780