Forum Moderators: phranque
<VirtualHost *:80>
RewriteEngine on
RedirectMatch ^/mail$ https://domain.de/mail/
RedirectMatch ^/webmail$ https://domainde/mail/
RedirectMatch ^domain\.de/mail https://domainde/mail/
# does not work
RedirectMatch ^/davical$ https://domainde/davical/
# does not work
RedirectMatch ^domain\.de/davical https://domainde/davical/
ReWriteCond %{HTTP_HOST} ^www.domain\.de
RewriteRule ^/(.*)$ http://domain.de/$1 [NC,R,L]
DocumentRoot /var/www/web
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/web>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
</VirtualHost>
<VirtualHost *:80>
DocumentRoot /var/www/davical
DirectoryIndex index.php index.html
ServerName davical.domain.de
# does not work
RedirectMatch ^/davical$ https://domain.de/mail/
# does not work
RedirectMatch ^domain\.de/davical https://domain.de/mail/
Alias /images/ /usr/share/davical/htdocs/images/
<Directory /usr/share/davical/htdocs/>
AllowOverride None
Order allow,deny
Allow from all
</Directory>
AcceptPathInfo On
php_value include_path /usr/share/awl/inc
php_value magic_quotes_gpc 0
php_value register_globals 0
php_value error_reporting "E_ALL & ~E_NOTICE"
php_value default_charset "utf-8"
ErrorLog /var/log/apache2/error.log
</VirtualHost>