Hello,

I am running the pyramid site I am developing on hostmonster
http://accounts.g2gal.com/
For some reason whenever I redirect to another page or generate URLs
using ${request.application_url} it adds mysite.fcgi to the url so for
example when I logout from the admin section and I want go to do
http://accounts.g2gal.com/ the site actually is redirecting me to
http://accounts.g2gal.com/mysite.fcgi/ 90% of the site code is being handled
via ajax calls so this doesn't happen often.

Here is my .htaccess
AddHandler fcgid-script .fcgi
RewriteEngine On
RewriteRule ^/(media.*)$ /$1 [QSA,L,PT]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ mysite.fcgi/$1 [QSA,L]

And my mysite.fcgi (Edited from the real path of course :D):
#!path_to_virtual_python/python
myapp = /path_to_application/G2GAccounts'
inifile = 'production.ini'
#inifile = 'development.ini'

import sys, os
sys.path.insert(0, myapp)
from paste.deploy import loadapp
wsgi_app = loadapp('config:' + myapp + '/' + inifile)
if __name__ == '__main__':
from flup.server.fcgi import WSGIServer
WSGIServer(wsgi_app).run()

Everything this is working with the site, but for personal taste I hate
the mysite.fcgi added to my URL any suggestions on what I should try/change
to prevent this?
-- 
-- 
Regards,
Bruce Wade
http://ca.linkedin.com/in/brucelwade
http://www.wadecybertech.com
http://www.warplydesigned.com
http://www.fitnessfriendsfinder.com

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to