Sub-domain install dashboard login caught in loop
-
I’m trying to migrate our website to wordpress, and we have a number of virtual hosts. I followed the instructions for setting up multisite from the codex and I registered the primary and secondary hostnames with our DHCP master.
I realize this is possibly the source of my problem: when I add the site, WordPress adds it at host2.mainhost.mydomain.edu, and what I have regsistered with DNS and what I need to use is host2.mydomain.edu. If I edit the domain in the ‘edit site’ window, it gets me to the login screen, but no farther. The login will shake and error with an incorrect password or username, but the correct password and username just refreshes the login window.
If I don’t change the defaulted domain name and change my vhost conf to match host2.mainhost.mydomain.edu – it just doesn’t work. 404 not found.
If I do change the hostname, it does load with a default look:
https://povertycenter2.case.eduHere is my virtual hosts configuration:
<VirtualHost *:80>
ServerName mainhost.mydomain.edu
ServerAdmin [email protected]
DocumentRoot /var/www/html/
ErrorLog logs/wp_log
</VirtualHost><VirtualHost *:80>
ServerName host2.mydomain.edu
ServerAdmin [email protected]
DocumentRoot /var/www/html/
ErrorLog logs/host2_log
LogLevel debug
</VirtualHost>WordPress is installed in /var/www/html/
After trolling the forums for the past couple days, I’ve re-written .htaccess a dozen times to no affect, but here it is currently:
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
# uploaded ?les
RewriteRule ^([_0-9a-zA-Z-]+/)??les/(.+) wp-includes/ms-?les.php??le=$2 [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).*) wp/$1 [L]
RewriteRule ^(.*\.php)$ wp/$1 [L]
RewriteRule . index.php [L](I’ve removed and re-added the “upload files” section most recently to no affect.)
I’ve seen recommendations to add a domain mapping plugin, but the ones I see aren’t tested in 3.5 – help?
- The topic ‘Sub-domain install dashboard login caught in loop’ is closed to new replies.