#!/bin/sh # Add htaccess configuration cat >> /var/www/html/.htaccess < RewriteRule ^sites/(.*) http://127.0.0.1/index.php/apps/cms_pico/pico/$1 [P] MARK # Enable apache modules a2enmod proxy proxy_http rewrite # Run service cron exec apache2-foreground