Title: error when open Subsites within localhost installed WordPress Multisites
Last modified: November 10, 2019

---

# error when open Subsites within localhost installed WordPress Multisites

 *  [yasserfm](https://wordpress.org/support/users/yasserfm/)
 * (@yasserfm)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/error-when-open-subsites-within-localhost-installed-wordpress-multisites/)
 * After successfully installed WordPress Multisites on MS Windows 10 localhost 
   for testing several LMS plugins before applying on production environment, I 
   can open & access the main local host site & dashboard, but after adding any 
   new subsite when trying to visit it browser gives error ” We’re having trouble
   finding that site” although it is showing added & named successfully on Mysites,(
   e.g.: learnpress.localhost)
    -  This topic was modified 6 years, 6 months ago by [yasserfm](https://wordpress.org/support/users/yasserfm/).

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [George Appiah](https://wordpress.org/support/users/gappiah/)
 * (@gappiah)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/error-when-open-subsites-within-localhost-installed-wordpress-multisites/#post-12116945)
 * Can you describe your multisite setup? Are you using subdomain or subdirectory
   installation? If you’re using sub-domain, have done the necessary DNS changes(
   perhaps via hosts file) for these sub-domains to work?
 * If `learnpress.localhost` is a subsite address (that means you’re using sub-domain
   setup), you should be able to `ping` it in your Windows command prompt and get
   a reply. If this doesn’t work, you have DNS issues and you need to fix that first—
   WordPress has nothing to do with that.
 *  Thread Starter [yasserfm](https://wordpress.org/support/users/yasserfm/)
 * (@yasserfm)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/error-when-open-subsites-within-localhost-installed-wordpress-multisites/#post-12118627)
 * Hello George, thanks a lot for your reply, yes I’m using sub-domain setup, and
   the sub-domain browsing error solved as you suggest througth adding DNS changes
   in the windows system hosts file, but now I’m facing another issue when trying
   to login to any subsite , which is: “ERROR: Cookies are blocked or not supported
   by your browser. You must enable cookies to use WordPress.” in the login window,
   and this happened in all brosers I tried although I checked & enabled cookies
   on all browsers, do you have any advice for this thanks,
 *  [George Appiah](https://wordpress.org/support/users/gappiah/)
 * (@gappiah)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/error-when-open-subsites-within-localhost-installed-wordpress-multisites/#post-12118810)
 * I’m not very familiar with Windows and IIS, but on Linux servers, I’ve solved
   this cookie problem by adding the following to wp-config.php
 * `define('COOKIE_DOMAIN', $_SERVER['HTTP_HOST'] );`
 * See this StackOverflow Q&A: [https://wordpress.stackexchange.com/questions/166181/cant-log-in-error-cookies-are-blocked-or-not-supported-by-your-browser-you](https://wordpress.stackexchange.com/questions/166181/cant-log-in-error-cookies-are-blocked-or-not-supported-by-your-browser-you)
 * And this WordPress forum support thread: [https://wordpress.org/support/topic/cookie-error-site-not-letting-me-log-in/](https://wordpress.org/support/topic/cookie-error-site-not-letting-me-log-in/)
 *  Thread Starter [yasserfm](https://wordpress.org/support/users/yasserfm/)
 * (@yasserfm)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/error-when-open-subsites-within-localhost-installed-wordpress-multisites/#post-12120947)
 * hello George, in my case the login issue solved by adding the the follwing to
   wp-config.php
 * define(‘ADMIN_COOKIE_PATH’, ‘/’);
    define(‘COOKIE_DOMAIN’, ”); define(‘COOKIEPATH’,”);
   define(‘SITECOOKIEPATH’, ”);
 * thanks a lot for the help, best regards.
 *  [George Appiah](https://wordpress.org/support/users/gappiah/)
 * (@gappiah)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/error-when-open-subsites-within-localhost-installed-wordpress-multisites/#post-12120982)
 * I’m glad I could be of help.
 * Have a good day… and good luck with your project!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘error when open Subsites within localhost installed WordPress Multisites’
is closed to new replies.

## Tags

 * [multisites](https://wordpress.org/support/topic-tag/multisites/)

 * In: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
 * 5 replies
 * 2 participants
 * Last reply from: [George Appiah](https://wordpress.org/support/users/gappiah/)
 * Last activity: [6 years, 6 months ago](https://wordpress.org/support/topic/error-when-open-subsites-within-localhost-installed-wordpress-multisites/#post-12120982)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
