• I have a wordpress site at example.com and also at subdomain.domain.com.

    My issue here is that my site at subdomain.domain.com is the same as example.com, which I do not want.

    How can I get them both to show different material for each domain. I am running linux mint 22.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi there @p2pleon

    My issue here is that my site at subdomain.domain.com is the same as example.com, which I do not want.

    How can I get them both to show different material for each domain.

    To show different content on subdomain.domain.com and domain.com, you need to install a different WordPress on these different two places.

    If you have cPanel hosting panel you will be able to choose to install a different WordPress on root domain (domain.com and subdomain.domain.com).

    But if you manage your own server, you need to manually prepare the database and WordPress files.

    Make sure that you don’t do alias from root to the subdomain as well to ensure you have different WordPress.

    Hi @p2pleon,

    Option 1: Independent WordPress Installations

    1. Set Up Separate WordPress Instances
      Install WordPress separately on both example.com and subdomain.domain.com.
    2. Use Different Themes/Content
      Configure separate themes, plugins, and content for each site, making them distinct.
    3. Database Setup
      Ensure each WordPress installation uses a separate database. You can set this up during installation by providing a unique database name.
    4. File System
      Each site should have its own directory on the server. For example:
      • example.com -> /public_html/
      • subdomain.domain.com -> /public_html/subdomain/

    Option 2: WordPress Multisite

    If you want to manage both sites under one WordPress installation:

    1. Enable Multisite
      Update the wp-config.php file in your root WordPress installation: define('WP_ALLOW_MULTISITE', true);
    2. Set Up the Network
      After enabling multisite, go to Tools > Network Setup in your WordPress dashboard and configure the network for subdomains.
    3. Create Subdomain Site
      Once the network is set up, create a new site under My Sites > Network Admin > Sites. Assign it to subdomain.domain.com.
    4. Customize Each Site
      Each site in a multisite network can have its own theme, plugins, and content, making them distinct.

    If the information I provided helps you resolve your issue, please mark the topic as resolved.

    Thanks,

    Hafiz

    Thread Starter p2pleon

    (@p2pleon)

    Ok if I do a multisite can I still use the database for the other, other than the main one from example.com and subdomain.domain.com

    Thread Starter p2pleon

    (@p2pleon)

    my main site is unf.com and pb.com.com is redirecting to main site of unf.com.

    i have tried most things for pb.com.com to not redirect and seen that my unf.com had some of the database for pb.com.com.

    I have apache2 and php, mariadb phpmyadmin installed on seperate computer from main computer.

    a nucbox.

    how can i get it to not to redirect.

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