• Hi,

    I have enabled wordpress multisite but the created site with subdomain is not working
    My main site is like https://test.example.co
    I have created sub domain like https://site1.test.example.co

    but https://site1.test.example.co showing server’s default page.

    I have added wildcard subdomain *.test.example.co

    I have added web.config script generated from network setup page.
    and also added follwing code in wp-config.php file

    define( ‘WP_ALLOW_MULTISITE’, true );
    define( ‘SUNRISE’, ‘on’ );

    define(‘MULTISITE’, true);
    define(‘SUBDOMAIN_INSTALL’, true);
    define(‘DOMAIN_CURRENT_SITE’, ‘blueboydesign.dev.techinitiator.co’);
    define(‘PATH_CURRENT_SITE’, ‘/’);
    define(‘SITE_ID_CURRENT_SITE’, 1);
    define(‘BLOG_ID_CURRENT_SITE’, 1);

    Please help me.
    how to remove server’s default page and show my site https://site1.test.example.co

Viewing 11 replies - 1 through 11 (of 11 total)
  • This would suggest that your DNS isn’t quite setup correctly. If you have created a subdomain through your hosting control panel try deleting it and creating a domain alias instead.

    A subdomain will normally create a new folder for you to put your website in and point traffic for that subdomain to that folder.

    A domain alias will point traffic to your default domain.

    Thread Starter Pavan Suthar

    (@pavan_suthar)

    Thanks for reply mojowill can you suggest how can I create domain alias. and from where ?

    It would really depend on your hosting control panel and hosting provider. it may be called parked domains in your control panel.

    Here’s a link to how to do it with cPanel
    https://documentation.cpanel.net/display/PLD/Aliases

    Thread Starter Pavan Suthar

    (@pavan_suthar)

    I am using control panel by parallels.com I could not found any link for add new sub domain alias.

    Thread Starter Pavan Suthar

    (@pavan_suthar)

    hello mojowill, I have not created a subdomain from hosting control.
    I am new in domain subject but I have seen several tutorials. From that I have found that can be done also using DNS record and I have added DNS record where host is *.test.example.co and value is ip address.

    Yes you can set it on your DNS but you still need to tell your server what to do when it receives requests for that address. If you have created a subdomain just on your DNS and pointed to your server/hosting IP address that is why you are seeing just the default page, the server doesn’t know where the traffic should be directed so shows the default page.

    Thread Starter Pavan Suthar

    (@pavan_suthar)

    Hello,
    I have moved my wordpress to new source like https://example.co
    I have not created subdmomain in control panel.
    I have added DNS record as previous *.example.co and ip address.

    I have tried to add server alias from my control panel with *.example.com but it showing error that invalid ,Domain names can comprise letters, digits and hyphens.

    then I have added server alias for plesk like this ServerAlias “*.example.com” in conf/vhost.conf file in root

    and Updated permalinks

    But now it showing default server page so what process I need to do next.

    Not all hosts will accept wildcard entries, you may simply have to add named domain aliases rather than the wildcard.

    Also please note that manually adding configuration to your vhost.conf file is not recommended when using a control panel such as Plesk, when you modify something in Plesk it could overwrite your config changes.

    Thread Starter Pavan Suthar

    (@pavan_suthar)

    Hello Mojowill, I could not understand about named domain what is it ?
    and how can I add it

    So instead of adding *.domain.co add the actual subdomain you wish to add.

    site1.domain.co
    site2.domain.co

    If you server doesn’t support Wildcards you may have to use Multisite with subdirectories instead of subdomains.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Subdiomain showing server default page.’ is closed to new replies.