My question may be outside the scope of Django and more related to .htaccess then anything else, but I thought I might give it a shot here just in case:
I am sure many of you have read the amazing tutorial from Jeff Croft on setting up Django on Dreamhost: http://www2.jeffcroft.com/2006/may/11/django-dreamhost/. In the tutorial we are directed to setup a subdomain for the Django application server. "This way", Jeff says, "you can play with Django all you like without affecting your production site." This makes perfect sense to me - installing Django to django.mydomain.com is a great way to have the web framework setup independently and available to use for multiple sites. Later in the tutorial we setup .htaccess on django.mydomain.com using apache's mod_rewrite module to pass all requests to our website through django.fcgi, therefore making all URLs on our subdomain routed to Django. Like so: RewriteEngine On RewriteBase / RewriteRule ^(media/.*)$ - [L] RewriteRule ^(admin_media/.*)$ - [L] RewriteRule ^(django\.fcgi/.*)$ - [L] RewriteRule ^(.*)$ django.fcgi/$1 [L] This also works great, I'm able to setup my urls.py file and load installed applications like django.mydomain.com/admin or django.mydomain.com/blog ... I even have a homepage setup that loads correctly when I go to django.mydomain.com. My question is, how do I get www.mydomain.com to point to my Django files properly - in other words how can I get www.mydomain.com load the same homepage I get when I go to django.mydomain.com? My project is stored at /mydomain.com/django/django_projects/myproject/ Any help on this would be greatly appreciated, thanks! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---