Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter MyNation

    (@mynation)

    someone suggested this .htaccess

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /

    # redirect rules for the other three domains
    RewriteCond %{HTTP_HOST} ^website1\.com$
    RewriteRule . https://website1.com [R=301,L]
    RewriteCond %{HTTP_HOST} ^website2\.com$
    RewriteRule . https://website1.com/site2 [R=301,L]
    RewriteCond %{HTTP_HOST} ^website3\.com$
    RewriteRule . https://website1.com/site3 [R=301,L]

    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

    is this .htaccess working?

    Hello @mynation
    Please check with this plugin https://www.ads-software.com/plugins/multiple-domain-mapping-on-single-site/.
    This will allow you to map multiple domains to pages.

    Thread Starter MyNation

    (@mynation)

    I seen that Plugin, Thank you for the suggestions.

    in that plugin installation, these points are not clear

    The A-Records of the used domains must have the same IP address assigned as your main domain. This is usually done in the DNS-Settings of your domain registrar.
    In your hosting environment, you must configure all domains to point into the same directory as your main domain (usually your WordPress root directory). This is usually called virtual hosting, multidomain, domain mapping, domain alias

    To set up multiple domain websites on a single WordPress installation, you can utilize the WordPress Multisite feature. Here’s a concise guide:

    1. Enable Multisite: In your wp-config.php file, add the following line to activate Multisite: define('WP_ALLOW_MULTISITE', true);
    2. Configure the Network: In your WordPress dashboard, navigate to Tools > Network Setup. Choose between subdomains (e.g., site1.example.com) or subdirectories (e.g., example.com/site1) for your sites. For subdomains, ensure you set up wildcard subdomains in your DNS settings. citeturn0search0
    3. Install the Network: Follow the on-screen instructions to add specific code snippets to your wp-config.php and .htaccess files. This step finalizes the Multisite installation.
    4. Add New Sites: In the Network Admin dashboard, go to Sites > Add New to create new sites. Initially, these sites will use subdomains or subdirectories.
    5. Map Custom Domains: To assign unique domains to each site, you can use a domain mapping plugin. This allows each site to have its own distinct domain while being managed from the same WordPress installation. citeturn0search5

    By following these steps, you can efficiently manage multiple websites with different domains from a single WordPress Multisite installation.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.