• Sometimes I like being able to refer to a site using either https://www.dom.ain or https://dom.ain .

    While I *can* go in to my apache configs and say:

    RewriteCond %{HTTP_HOST} ^.*\.dom.ain [NC]
    RewriteRule ^/?(.*) https://dom.ain/$1 [L,R,NE]

    that’s extra work I have to remember to do when I create a site, and extra work if I remove a site.

    Similarly, if somebody wants to have multiple domains that map to the same site, I can go into my apache configs and say:

    # Yes, the following is a bit sloppy…
    RewriteCond %{HTTP_HOST} ^.*\.dom1.org [NC,OR]
    RewriteCond %{HTTP_HOST} ^.*dom2.com [NC,OR]
    RewriteCond %{HTTP_HOST} ^.*dom3.org [NC]
    RewriteRule ^/?(.*) https://dom1.org/$1 [L,R,NE]

    but I still have all of the issues noted above.

    Would it be difficult to have the ability to list “domain aliases” when creating a networked site that would handle all of this for me?

    Yes, this is more of an issue for me because I like to use “domain” network sites instead of “subdomain” sites, but even then, I think this would be a useful enhancement.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘network site alias domains’ is closed to new replies.