We have a website made by Django. And we have no problems when access similar url on local working environment: http://site/tags/c%23/
"c%23" is urlencode of "c#", that works fine locally. While we deployed on Bluehost(apache+fastcgi), it has been resolved to a new address like this: http://site/t/tags/c/ That's weird for me and i think maybe it's not a Django's problem, but Apache url's rewrite. I am not familiar with this part, so any suggestion will be appreciated. Thank you. Here is the .htaccess file under site foot: -------------------------------------------------------------------------------------- AddHandler fcgid-script .fcgi #AddHandler fastcgi-script .fcgi #AddHandler application/cgi .fcgi #AddHandler cgi-script .fcgi RewriteEngine On RewriteBase / #static file setting RewriteRule ^(media/.*)$ - [L] RewriteRule ^(static/.*)$ - [L] RewriteCond %{REQUEST_URI} !(dispatch.fcgi) RewriteRule ^(.*)$ dispatch.fcgi/$1 [L] -------------------------------------------------------------------------------------- and the dispatch.fcgi file: -------------------------------------------------------------------------------------- #!/home/***/python/bin/python import sys, os # Add a custom Python path. sys.path.insert(0, "/home/***/python") sys.path.insert(0, "/home/***/working/Django-1.0") os.chdir("/home/***/working/Django-1.0/project") os.environ['DJANGO_SETTINGS_MODULE'] = "project.settings" from django.core.servers.fastcgi import runfastcgi runfastcgi(["method=threaded", "daemonize=false"]) -------------------------------------------------------------------------------------- It that's necessary, i will attach my Django urlpatterns later. --~--~---------~--~----~------------~-------~--~----~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---