diff --git a/apache.conf b/apache.conf new file mode 100644 index 0000000..7234833 --- /dev/null +++ b/apache.conf @@ -0,0 +1,14 @@ + + DocumentRoot /var/www/tousenscene34.fr + ServerName tousenscene34.fr + ServerAlias www.tousenscene34.fr + + AllowOverride All + + + ErrorDocument 403 /403.html + ErrorDocument 404 /404.html + + ErrorLog ${APACHE_LOG_DIR}/tousenscene34.fr_error.log + CustomLog ${APACHE_LOG_DIR}/tousenscene34.fr_access.log combined + diff --git a/content/.htaccess b/content/.htaccess new file mode 100644 index 0000000..d8d6238 --- /dev/null +++ b/content/.htaccess @@ -0,0 +1,4 @@ +RewriteEngine On +RewriteBase / +RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] +RewriteRule ^(.*)$ http://%1/$1 [R=301,L]