I have a working Django site, say http://localhost/django/spam. I want to use the Apache rewrite module to map this to http://localhost/ham. When I use the RewriteRule, it does the rewrite then tries to look up django/spam in the local file system (ie /usr/local/apache2/htdocs/django/spam does'nt exist), ignoring the django handler, so I get a 404. Using http://localhost/django/spam directly works fine.
Eg httpd.conf:
RewriteRule ^/ham /django/spam
<Location /django/spam>
Usual mod_python stuff
</Location>
I can make this work using the [R] flag, but that exposes /django/spam to the browser, which is what I'm trying to avoid.
|
-- Les Smithson <[EMAIL PROTECTED]> Open Network Solutions Ltd |
signature.asc
Description: This is a digitally signed message part

