• 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 7 replies - 1 through 7 (of 7 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.

    You don’t actually need to install another WordPress for this. Your question is about the server configuration in your hosting. You need to redirect the domain that the website should not show to another path. You have to set this in your hosting and has nothing to do with WordPress. If you need help with this, please contact your hosting provider’s support team.

    Thread Starter p2pleon

    (@p2pleon)

    I said I run Mint 22 Linux machine, i came from hosting trying to do self host.

    Then you have to see how you can create different Vhosts for different domains in your Apache. However, this is not a topic for the WordPress forum here. There are many guides and other communities on the web that can help with this.

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