I couldn't make this one work:

('^$', lambda *args: HttpResponseRedirect('/admin/'))

I want to try the other case, which file in apache do I use?

Thanks

On Nov 15, 1:01 pm, Dennis Kaarsemaker <den...@kaarsemaker.net> wrote:
> On zo, 2009-11-15 at 09:35 -0800, Zeynel wrote:
>
> > how do i redirectwww.swimswith.comtowww.swimswith.com/admin/
>
> In your urlpatterns:
> ('^$', lambda *args: HttpResponseRedirect('/admin/'))
>
> Or make your webserver do this, e.g. in apache:
>
> RewriteEngine On
> RewriteRule ^/$ /admin/ [R,L]
>
> --
> Dennis K.
>
> The universe tends towards maximum irony. Don't push it.

--

You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=.


Reply via email to