- Code: Select all
<VirtualHost *>
DocumentRoot /srv/www/htdocs/domaintld
ServerName www.domain.tld
ServerAdmin ***@arcor.de
<Directory /srv/www/htdocs/domaintld>
AllowOverride all
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost *>
DocumentRoot /srv/www/htdocs/domaintld
ServerName domain.tld
RedirectPermanent / "http://www.domain.tld/"
ServerAdmin ***@arcor.de
<Directory /srv/www/htdocs/domaintld>
AllowOverride all
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost *>
Ein 2. vhowt so:
- Code: Select all
<VirtualHost *>
DocumentRoot /srv/www/htdocs/subdomaindomain2tld
ServerName subdomain.domain2.tld
RedirectPermanent / "http://www.domain.tld/"
ServerAdmin ***@arcor.de
<Directory /srv/www/htdocs/subdomaindomain2tld>
AllowOverride all
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost *>
<VirtualHost *>
DocumentRoot /srv/www/htdocs/subdomaindomain2tld
ServerName www.subdomain.domain2.tld
RedirectPermanent / "http://www.domain.tld/"
ServerAdmin ***@arcor.de
<Directory /srv/www/htdocs/subdomaindomain2tld>
AllowOverride all
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost *>
Es soll also einfach von einer Subdomain ener Domaine auf eine andere Domain umgeleitet werden.
Nun sollen aber etwa 40 Seiten, dessen Links nicht mehr geändert werden können, speziell umteleitet werden, also nicht
- Code: Select all
http:/subdomain.domain2.tld/irgendwas http://www.domain.tld/irgendwas
sondern
- Code: Select all
http:/subdomain.domain2.tld/irgendwas http://www.domain.tld/wasanderes
Wie mache ich das am besten?