NameVirtualHost * <VirtualHost SERVER_IP_ADDRESS_HERE_PLEASE:80> UseCanonicalName Off DocumentRoot /www RewriteEngine On RewriteMap lowercase int:tolower Options -Indexes RewriteRule ^(.+) ${lowercase:%{SERVER_NAME}}$1 [C] RewriteRule ^([^\.\/]+\.co\.uk)/(.*) /www/$1/www/root/$2 RewriteRule ^www\.([^\.\/]+\.co\.uk)/(.*) /www/$1/www/root/$2 RewriteRule ^([^\.\/]+\.[^\.\/]+)/(.*) /www/$1/www/root/$2 RewriteRule ^www\.([^\/]+)\.([^\.\/]+\.[^\.\/]+)/(.*) /www/$2/$1/root/$3 RewriteRule ^([^\/]+)\.([^\.\/]+\.[^\.\/]+)/(.*) /www/$2/$1/root/$3 </VirtualHost> <Directory /www> php_admin_flag safe_mode off php_value upload_max_filesize 10M php_value post_max_size 10M php_value memory_limit 35M </Directory> |