-1

How do I "mirror"/point various specific domain names to a given .com/suburl/?

Examples:

mydomain.fr > mymaindomain.com/france/

mydomain.se > mymaindomain.com/sweden/

I currently have the following .conf setup:

<VirtualHost *:80>
        ServerName u13nuym
    ServerAlias u13nuym.somedomain.DK www.mydomain.com mydomain.com www.mydomain.dk mydomain.dk
    MaxClientsVHost 32
        <Directory />
                AAHatName u13nuym
                Options FollowSymLinks
                AllowOverride All
        </Directory>
</VirtualHost>

I have taken care of pointing the various domain names with correct A-record to the server.

1 Answers1

-2

Try to use .htacces

HOW DO I REDIRECT MY SITE USING A .HTACCESS FILE

# This allows you to redirect your entire website to any other domain  
Redirect 302 / http://mt-example.com/
HBruijn
  • 77,029
  • 24
  • 135
  • 201
O. Peer
  • 45
  • 3
  • Don't use htaccess unless you have to it slows things down. Use a directory block in the main config instead. – user9517 Apr 04 '16 at 05:42