htaccess

# Redirect http to https
RewriteEngine On

RewriteCond %{HTTP_HOST} !^www\.panticz\.de [NC]
RewriteCond %{HTTP_HOST} !^$
RewriteRule ^(.*) http://www.panticz.de/$1 [L,R=301]

RewriteCond %{SERVER_PORT} !^443$
RewriteRule (.*) https://%{HTTP_HOST}/$1 [L]

RewriteCond %{HTTP_HOST} ^(www.)?YourDomain.com$
RewriteRule ^(/)?$ page [L]

# Allow directory listing
# enable "AllowOverride All" in VHost configuration first
Options +Indexes

# Allow show bash files

Allow from all
AddType text/plain .sh .bash

# Enable PHP5
AddType x-mapp-php5 .php
AddHandler x-mapp-php5 .php
or
SetEnv PHP_VER 5

# disable REGISTER_GLOBALS
SetEnv REGISTER_GLOBALS 0

# redirect to another homepage
RewriteEngine on
RewriteRule ^page_1.html$ http://www.panticz.de

# redirect by domain name
RewriteCond %{HTTP_HOST} ^(.*)(shop|sell)(.*)$
RewriteRule ^$ /my-shop [L,R=301]

# Vhost: /etc/apache2/sites-available/video.conf

DocumentRoot /media/video/axis-00112233CCDD
ServerName video
ServerAlias video.example.com

Require all granted
AddType video/x-matroska .mkv
Options +Indexes
IndexIgnore *.xml *.db

a2ensite video

# Alias: /etc/apache2/conf-available/snom.conf
Alias /snom "/srv/snom3x0"

Options Indexes MultiViews FollowSymLinks
Require all granted

a2enconf snom

# Links
http://corz.org/serv/tricks/htaccess2.php
http://www.searchenginepromotionhelp.com/m/articles/search-engine-problems/url-redirect-safe.php