On Sun, 2005-10-16 at 14:27 +0000, Alice wrote:
> I'm just learning regular expressions (something I've put off for ages
> now), and was wondering if it was possible to redirect from a subdomain
> to somewhere within my project using Django, i.e.
> 
> redirect 'Subdomain.domain.com.au/appname/' to
> 'domain.com.au/appname/pagename'
> 
> or is this better suited to mod_rewrite? (something else I've put off
> learning about)

You could put an app at subdomain.domain.com.au/appname/ with an index
view that just returns HttpResponseRedirect.  But learning just enough
about mod_rewrite to do the job would probably be less work.

-- 
+----------------------------------------------------------------+
| Jason F. McBrayer                         [EMAIL PROTECTED]  |
|  "If you wish to make Pythocles wealthy, don't give him more   |
|   money; rather, reduce his desires."            -- Epicurus   |

Reply via email to