Multisite for demos
-
Hi guys,
Im wondering here how am I going to set up new sites in form of :
https://demo.domain.com/test1, https://demo.domain.com/test2, https://demo.domain.com/test3 etc ?I have set up the network, which is ready and I also have in the config file this:
define('WP_ALLOW_MULTISITE', true); define('MULTISITE', true); define('SUBDOMAIN_INSTALL', false); define('DOMAIN_CURRENT_SITE', 'demo.domain.com'); define('PATH_CURRENT_SITE', '/'); define('SITE_ID_CURRENT_SITE', 1); define('BLOG_ID_CURRENT_SITE', 1);
And in the .htaccess I have this :
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]
I have also created a subdomain in cPanel having it pointing at a new folder called /demo
Should this subdomain be pointing at the root maybe?Currently Im not being able to see the newly created sites.
In the DNS zone those records has been created:
demo.domain.com. 14400 IN A “IP number”
https://www.demo.domain.com. 14400 IN A “IP number”
Important to mention that I do get this when entering : demo.domain.com on the browser:
Index of /demo
Parent Directory
cgi-bin/Anything I have done wrong and Im still not able to see the new sites?
- The topic ‘Multisite for demos’ is closed to new replies.