cyranos
Member
Posted 2 years ago #
I've had wordpress running on my primary domain for quite some time now. It's been running on http://www.mydomain.com on IIS 7.
I've recently setup a subdomain running within another site on the same IIS 7 server with a unique MySQL database (each blog is independent of the other as far as WordPress files and MySQL database.
The problem I've run into is that whenever I visit http://www.mydomain.com it loads subdomain.mydomain.com. Additionally when I visit subdomain.mydomain.com it loads (as it should).
Any ideas on why the subdomain blog has suddenly taken over?
in your main domain database, check the wp-options table and check the blog URL..
also, refer this URL:
http://codex.wordpress.org/Changing_The_Site_URL
cyranos
Member
Posted 2 years ago #
Thanks Ryans149, everythings working now.
cyranos
Member
Posted 2 years ago #
Looks like I spoke too soon. If you open a new browser and load http://www.mydomain.com before you load subdomain.mydomain.com everything works fine.
If on the other hand you load subdomain.mydomain.com before http://www.mydomain.com the problem reappears.
Forcing a refresh (Ctrl + F5) doesn't doing anything for it but closing the browser and starting over fixes the issue.
what in your .htaccess? (for both domains)
cyranos
Member
Posted 2 years ago #
Hey Ryan, thanks for persevering with this one
I don't have a .htaccess file as its running on IIS7
cyranos
Member
Posted 2 years ago #
Also I started a seperate thread:
http://wordpress.org/support/topic/309135?replies=4
I wanted to start fresh with a clear description of the environment and problem details. I'm happy for your reply in whichever thread you like but I figure the information in the other thread might be of use.
Thanks again.