How can I run a FastCGI script in root url (/ - without path)?
<p>I have created a simple application in Python/Flask, which has a home url (<code>www.site.com/</code>). I have acquired a HostGator <strong>shared account</strong> to host it, so I only have access to <code>.htaccess</code>, but no other Apache config files.</p>

<p>I setup a FastCGI script to run the application (following <a href="http://support.hostgator.com/articles/django-with-fastcgi" rel="nofollow">these instructions</a>), but they require the URL to have a <code>/index.fcgi</code> or any other path. <strong>Can I make the root path (/) be served directly by the FastCGI script?</strong> Also, folders like <code>/static/</code> and <code>/favicon.ico</code> should be served by Apache instead.</p>

<p>What I have now as <code>.htaccess</code> is:</p>

<pre><code>AddHandler fcgid-script .fcgi
DirectoryIndex index.fcgi

RewriteEngine On
RewriteBase /
RewriteRule ^index.fcgi$ - [R=302,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.fcgi/$1 [R=302,L]
</code></pre>

<p>I'm not sure, but I think the Apache version is 2.2.</p>