anitahitouch/mediadrop/master/deployment-scripts/mod_fastcgi/.htaccess - Htaccess File

anitahitouch/mediadrop/master/deployment-scripts/mod_fastcgi/.htaccess

# .htaccess file for installation of MediaDrop with Apache/FastCGI
# See installation instructions at http://mediadrop.net/docs/install/apache-fastcgi.html

<IfModule mod_fcgid.c>
    AddHandler fcgid-script .fcgi
</IfModule>
<IfModule mod_fastcgi.c>
    AddHandler fastcgi-script .fcgi    
</IfModule>
Options +ExecCGI +FollowSymlinks
RewriteEngine On

# Create rewrite rules for media and podcast images and custom layout
RewriteRule ^images/(media|podcasts)(.*) data/images/$1$2 [L]
RewriteRule ^appearance/(.*) data/appearance/$1 [L]

# Create rewrite rules for serving MediaDrop's static content
RewriteRule ^(admin/)?(styles|images|scripts)/(.*)$ public/$1$2/$3 [L]

# Create rewrite rules for pointing MediaDrop requests to fastcgi script
RewriteRule ^mediadrop.fcgi(/.*)$  - [L]
# If the file requested doesn't exist on the filesystem, redirect to mediadrop.fcgi
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ mediadrop.fcgi/$1 [L]

On Github License

Files

Download PDF of Htaccess file
REQUEST_FILENAME, static

Comments

Apache