• [Moderator note: moved to Fixing WordPress. You have two single WP sites, not a network installation]

    I have two sites hosted on GoDaddy that I want to have WordPress blogs. The first one, my main site (blog.stuckwithpins.com), is currently successfully running WordPress. For my other site (corinnealexandra.com –?this is an addon domain of my main site stuckwithpins.com), I created a new database, downloaded a fresh version of WordPress to the directory (/blog), and tried to run the install as normal. But when I get to the installation process page, I keep getting a “Please provide a valid username” error after I’ve submitted all my info.

    I’m assuming this roadblock may have something to do with the fact that I already have WordPress in my home directory (for stuckwithpins.com), and my other site (corinnealexandra.com) is stored in a subdirectory?

    Any help or insight is greatly appreciated!

    • This topic was modified 8 years, 2 months ago by Jan Dembowski.
    • This topic was modified 8 years, 2 months ago by bcworkz. Reason: moved to Fixing
Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz

    (@bcworkz)

    How did you set the WP and site addresses in general settings? corinnealexandra.com or corinnealexandra.com/blog ? The latter should work if you login at corinnealexandra.com/blog/wp-login.php. I’m guessing you don’t want the “/blog” in your home URL, but going to corinnealexandra.com as a visitor currently loads stuckwithpins.com content?

    If you want your new site’s home page to load when requesting just corinnealexandra.com, you need a rewrite rule in the root .htaccess file. The rule must occur before the WordPress entry on that file for stuckwithpins.com. The following rule works for a similar situation on my site, but one small error will cause both sites to return 500 errors, so have an original copy of the file ready to upload in case this doesn’t work.

    <ifmodule mod_rewrite.c>
    #	send request for corinnealexandra.com to /blog as site root
    	RewriteEngine on
    	RewriteBase /
    	RewriteCond %{REQUEST_URI} !^/blog/	[NC]
    	RewriteCond %{HTTP_HOST} w*\.?corinnealexandra\.com [NC]
    	RewriteRule (.*) /blog/$1		[L]
    </ifmodule>

    With this rule, the WP and site addresses for your new WP installation should both be http://corinnealexandra.com

    • This reply was modified 8 years, 2 months ago by bcworkz. Reason: 1 final thought

    I never had this issue before, But I think you can follow the instructions given by @bcworkz

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Problem Installing WordPress on Multiple Domains’ is closed to new replies.