Adi J. Sieker wrote:
> On Wed, 09 Jul 2008 15:27:07 +0200, Antoni Aloy <[EMAIL PROTECTED]>  
> wrote:
>
>   
>> 2008/7/9 RHC <[EMAIL PROTECTED]>:
>>     
>>> I know this may seem like an insanely simple question, but I'm a real
>>> newbie so be kind.
>>>
>>> I am trying to upgrade from an old php website to Django.  The problem
>>> is I need to 301 redirect old urls to new Django ones, eg.
>>>
>>> http://www.mysite.com/widgets/purplewidget.php
>>>
>>> needs to redirect to
>>>
>>> http://www.mysite.com/widgets/purplewidget/
>>>       
>> It seems a task for apache mod_rewrite
>> http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html
>>
>> Hope it helps!
>>
>>     
>
> or contrib.redirects see:
> http://www.djangoproject.com/documentation/redirects/
>
> Regards
>     Adi
>
> >
>
>   
Mod rewrite will be faster and more efficient. Not to mention, it takes 
some complexity out of your project.

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

Reply via email to