WordPress.org

Ready to get started?Download WordPress

Forums

"ERROR 404 - PAGE NOT FOUND" and wildcard subdomain is set? (2 posts)

  1. nd00jan
    Member
    Posted 1 year ago #

    I have bought a very good manual for installing MultSites.

    But when I add a new site and click the dashboard for that particular site i get this error:

    "ERROR 404 - PAGE NOT FOUND".

    Strange...

    I have HostGator and created an addon domain where I installed WordPress MultiSites. In the CPanel under "Subdomains" I entered the wildcard subdomain:

    *.mywpmultisite.com

    I also have the option to choose

    *.primarydomain.mywpmultisite.com

    I have a primary domain name used for my hosting account at Hostgator so should I also include that when creating the wildcard subdomain? From the manual I'm using, it looks like the first approach would be the right one.

    After creating the wildcard subdomain I clicked the Network setup within WP, then I came to the page "Create an network of wordpress sites" I choosed "Sub-domains" since I wanted every new site to be a sub-domain. Then I clicked install and came to the page "Enabling the Network" and at the top of the page I got this error message:

    Warning! Wildcard DNS may not be configured correctly!

    "The installer attempted to contact a random hostname (59df16.mywpmultisite.com) on your domain. This resulted in an error message: Couldn't resolve host '59df16.mywpmultisite.com'

    To use a subdomain configuration, you must have a wildcard entry in your DNS. This usually means adding a * hostname record pointing at your web server in your DNS configuration tool.

    You can still use your site but any subdomain you create may not be accessible. If you know your DNS is correct, ignore this message."

    So I know I had already set this wildcard subdomain so I just continued with:

    1. Create an additional directory folder on your hosting server.

    - Then created "blogs.dir" inside the "wp-content" directory.

    2. Edit the wp-config.php file one more time to add more code.

    - Then I added:

    define('MULTISITE', true);
    define('SUBDOMAIN_INSTALL', true);
    $base = '/';
    define('DOMAIN_CURRENT_SITE', 'mywpmultisite.com');
    define('PATH_CURRENT_SITE', '/');
    define('SITE_ID_CURRENT_SITE', 1);
    define('BLOG_ID_CURRENT_SITE', 1);

    3. Edit the .htaccess file and add a bit of code.

    - Then I added:

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]

    # uploaded files
    RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule . index.php [L]

    ---

    Still this error:

    I don't get this. What could I be doing wrong?

  2. What happens if you go to mysite.mywpmultisite.com ?

Topic Closed

This topic has been closed to new replies.

About this Topic