Is it possible to have Apache htaccess rewrites take effect before it hits django?
I want to be able to specify RewriteRules
in an htaccess file that take precedence over django, and if nothing matches then it gets dispatched to mod_wsgi/django.
We're using apache2 with mod_wsgi and the apache vhost looks like this:
<VirtualHost *:80>
DocumentRoot /usr/local/www/site/static
Alias /css/ /usr/local/www/site/static/css/
Alias /js/ /usr/local/www/site/static/js/
Alias /img/ /usr/local/www/site/static/img/
Alias /flash/ /usr/local/www/site/static/flash/
<Directory /usr/local/www/site/static>
AllowOverride All
Order allow,deny
Allow from all
</Directory>
WSGIDaemonProcess mallorca-site threads=15
WSGIScriptAlias / /usr/local/www/site/config/dev/dev.wsgi
</VirtualHost>
Thanks