views:

132

answers:

2

I have a website done with Django, that was previously done with PHP and CodeIgniter. I've moved the website to Webfaction, changed the DNS and all other configurations, but now my email is full of errors like this:

Error (EXTERNAL IP): /index.php/main/leer/7497

I don't know why the Django app is looking for pages from the PHP app, specially since the PHP app was in another host.

+4  A: 

Are those URLs from your old site? That's probably a case of people having stale bookmarks, trying to navigate to them, and getting 404s. You might want to consider catching those, and redirecting to the new URL with response code 302.

I can't imagine those errors are caused by Django (except in the sense that the reports are from Django reporting 404s, which it does for free).

Dominic Rodger
I'm definitely certain this is the reason.
voyager
Yes, from the old site , Yes Dominic, is reporting 404, i will try the contrib.redirectsThanks
Asinox
+3  A: 

I agree with above. Just want to add you should use django.contrib.redirects to move the redirects.

You can read more about it here

Orange Box
+1 - didn't know about `contrib.redirects`, very cool!
Dominic Rodger