andradei
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Subdomain Logs In, but redirects to DomainSolved it. The problem was in a parameter in functions.php.
The Login function was redirecting to the main site. Once I changed that, all worked fine.
It was like this
//login success redirect add_action('wp_login', 'login_success'); function login_success(){ $referer = $_SERVER['HTTP_REFERER']; if (strstr($referer, 'wp-login') || strstr($referer, 'wp-register')){ $referer = 'http://byuicomm.net/'; }So I chaged the last line to point where I wanted to go
//login success redirect add_action('wp_login', 'login_success'); function login_success(){ $referer = $_SERVER['HTTP_REFERER']; if (strstr($referer, 'wp-login') || strstr($referer, 'wp-register')){ $referer = 'http://beta.byuicomm.net/'; }Thank you all for your help.
Forum: Fixing WordPress
In reply to: Subdomain Logs In, but redirects to DomainI added the defines, but it is still doing the same thing – redirecting me to example.com.
I’ll take a look at the db.
Forum: Fixing WordPress
In reply to: Subdomain Logs In, but redirects to Domain@joe Manna Even if I don’t want to be taken to example.com instead of beta.example.com?
I did migrate the db, I’ll check on that, thank you
Forum: Fixing WordPress
In reply to: Subdomain Logs In, but redirects to DomainI really appreciate your help!
Could I know which tool you used to get that information?Forum: Fixing WordPress
In reply to: Subdomain Logs In, but redirects to DomainSure. Its beta.byuicomm.edu. notice you’ll get redirected to byuicomm.edu after logging in.
Forum: Fixing WordPress
In reply to: Subdomain Logs In, but redirects to DomainI am not sure exactly. I’m not the only the only one that ever worked on this project, the other devs are gone too, so I’m left with this little issue to solve.
Which files would be involved in a problem like this?
I already checked wp-login and htaccess without finding anything.Forum: Fixing WordPress
In reply to: Subdomain Logs In, but redirects to DomainIn the subdomain they are both set to http: //beta.example.com/