Keywords: WordPress Multisite - Amazon Web Services - How to - Domain Name (DNS)
Description:
I'm trying to set up multisite to handle to separate themes/sites on the same ec2 instance.
When I try to create a new site, the page gets created in the dashboard, but when I visit the site I get an ERR_NAME_NOT_RESOLVED
response.
I set up my multisite account using this blog: https://premium.wpmudev.org/blog/ultimate-guide-multisite/
here is the relavent part of my wpconfig:
*
* @link https://codex.wordpress.org/Debugging_in_WordPress
*/
define('WP_DEBUG', false);
define( 'WP_ALLOW_MULTISITE', true );
define('MULTISITE', true);
define('SUBDOMAIN_INSTALL', true);
define('DOMAIN_CURRENT_SITE', 'fittraction.com');
define('PATH_CURRENT_SITE', '/');
define('SITE_ID_CURRENT_SITE', 1);
define('BLOG_ID_CURRENT_SITE', 1);
/* That's all, stop editing! Happy blogging. */
/**
* The WP_SITEURL and WP_HOME options are configured to access from any hostname or IP address.
* If you want to access only from an specific domain, you can modify them. For example:
*/
and here is .htcaccess:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
# add a trailing slash to /wp-admin
RewriteRule ^wp-admin$ wp-admin/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^(wp-(content|admin|includes).*) $1 [L]
RewriteRule ^(.*\.php)$ $1 [L]
RewriteRule . index.php [L]
</IfModule>
Ive seen mention of need a wildcard subdomain record, but am getting conflicting reports about where that gets set. I do own the domain and manage it on route 53, please help.