I get the following message when I browse to site.com
500 - Internal Server Error
I get my 404 error message when I browse to www.site.com which indicates my site is alive.
How can you make a domain redirection without .htaccess by Django from site.com to www.site.com?
My urls.py
from django.conf.urls.defaults import *
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Example:
# (r'^{{ project_name }}/', include('{{ project_name }}.foo.urls')),
(r'^home/', include('index.html')),
# Uncomment the admin/doc line below and add 'django.contrib.admindocs'
# to INSTALLED_APPS to enable admin documentation:
(r'^admin/doc/', include('django.contrib.admindocs.urls')),
(r'^admin/(.*)', admin.site.root),
)
[edit]
I have the following answer from Djangohosting:
Remove the website proxy for [site.com] and add [site.com] in the aliases section of the [www.site.com] website.
I am not completely sure what it means.
- How can you remove the website proxy for site.com?
- Where can you find the aliases section of the website www.site.com?