Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multi site redirect look wp-signup.php? #4

Open
wykydtronik opened this issue Mar 26, 2014 · 1 comment
Open

multi site redirect look wp-signup.php? #4

wykydtronik opened this issue Mar 26, 2014 · 1 comment

Comments

@wykydtronik
Copy link

Hello,

This looks integrating, I am faced with a few issues with multi-site instance.

I must define a few globals, such as: VHOST, DOMAIN_CURRENT_SITE, PATH_CURRENT_SITE, SITE_ID_CURRENT_SITE, BLOGID_CURRENT_SITE, WP_ALLOW_MULTISITE, MULTISITE, and just $base

One thing I'm trying is to use the remote database (production or a cloned dev db) - anybody know of a way to prevent the redirect loop for the local instance? For instance, on my production or cloned production dev.db, site_id 1 / blog_id 1 is defined as mydomain.com - and it sees the incoming connection from http://local.instance - so it automatically redirects to http://local.instance/wp-signup.php?new=local.instance - because the multi-site side does this automatically.

I'm wondering, is there a way to prevent this and trick WP into serving the production db with the local.instance URL?

@Abban
Copy link
Owner

Abban commented Mar 27, 2014

Can you not just hardcode the domain in the environment switch:

define('WP_SITEURL', 'http://mydomain.com/');
define('WP_HOME', 'http://mydomain.com/');

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants