WordPress.org

Support

Support » Multisite » Another "Missing or invalid site address."

Another "Missing or invalid site address."

  • marcdilatush
    Member

    @marcdilatush

    I have setup multisite in the wp-config.php and .htaccess files. copied the site address from the domain manager
    “invalid sitre toppremiumproductsgroup.com”
    and still get the error

    //** allow multisites on one host and wordpress installation
    define(‘WP_ALLOW_MULTISITE’, true);

    define(‘MULTISITE’, true);
    define(‘SUBDOMAIN_INSTALL’, false);
    define(‘DOMAIN_CURRENT_SITE’, ‘www.mhdassoc.com’);
    define(‘PATH_CURRENT_SITE’, ‘/Wordpress/’);
    define(‘SITE_ID_CURRENT_SITE’, 1);
    define(‘BLOG_ID_CURRENT_SITE’, 1);

    /* That’s all, stop editing! Happy blogging. */

    AND
    .htaccess in the public_html directory
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^mhdassoc\.com$ [OR]
    RewriteCond %{HTTP_HOST} ^www\.mhdassoc\.com$
    RewriteRule ^/?$ “http\:\/\/MHDAssoc\.com\/Wordpress” [R=301,L]

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

    AND
    .htaccess in the public_html/wordpress/ directory
    # BEGIN s2Member GZIP exclusions
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /Wordpress/
    RewriteCond %{QUERY_STRING} (^|\?|&)s2member_file_download\=.+ [OR]
    RewriteCond %{QUERY_STRING} (^|\?|&)no-gzip\=1
    RewriteRule .* – [E=no-gzip:1]
    </IfModule>
    # END s2Member GZIP exclusions

    # BEGIN WordPress
    RewriteEngine On
    RewriteBase /Wordpress/
    RewriteRule ^index\.php$ – [L]

    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ – [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]

    # END WordPress

Viewing 15 replies - 1 through 15 (of 22 total)
  • MisterManu
    Member

    @mistermanu

    Your .htaccess is extremely long! is it because you are using S2member or what?
    You also seem to have two different .htaccess, I doubt that is a good thing except if you run two separate wordpress installs…
    If you can I would suggest to erase everything and start the installation over, by then you’ve probably made so many tweakings to fix your problem that you might have forgotten everything you’ve modified. If you cannot, try to look into your .htaccess, wordpress gives you exactly what you need to copy/paste, there’s nothing to modify.
    On mine I just have

    <IfModule mod_rewrite.c>
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    Also, don’t forget to add a wildcard to your server on your host. To do so just create a subdomain from your host cpanel and put a star like that : *.yourdomain.com it should work then.

    Wrong .htaccess 😉

    Pick the right one from here: http://codex.wordpress.org/htaccess

    You want one of the ‘3.5 and up…’ entries.

    marcdilatush
    Member

    @marcdilatush

    I sent two .htaccess files; one from the public_html directory and one from the public_html/wordpress directory. I used an add-on domain because I wanted two completely independent URLs. The .htaccess in the wordpress directory is the same as the one you referenced except for the S2 plugin which I have deactivated and the “RewriteBase wordpress/”. How does wordpress determine where to find a valid site address? should I change the RewriteBase?
    Thanks for your help!

    Where is WordPress installed?

    What are the home/site URLs of the primary site?

    Are you using subdomains or subfolders for your Multisite?

    marcdilatush
    Member

    @marcdilatush

    WordPress is installed in public_html/wordpress/ which is the primary site URL, http://www.mhdassoc.com. The add-on domain is http://www.toppremiumproductsgroup.com which has a subfolder, public_html/toppremiumproductsgroup/. When I try to add the secondary site http://www.toppremiumproductsgroup.com from the network admin screen it gives me the “Invalid Site Address”.

    MisterManu
    Member

    @mistermanu

    There’s something you’ve done wrong.

    First, the add-on domain is not connected to wordpress in anyway.Which is why you’re having a problem.

    I’m going to assume that your WordPress Multisite installation is correct and working. What you need to do is create a subdomain called whatever you want but it’s gonna look like subdomain.mhdassoc.com (if that’s the main domain associated with your multisite installation). You create that subdomain from your wordpress backend, not your cpanel in your host. Then you install multiple domain mapping plugin, you should be able to make subdomain.mhdassoc.com look like http://www.toppremiumproductsgroup.com since you have that domain on your host.
    On a side note, whenever you want to have subdomains, you need to go to your server and have a wildcard activated, for that you just need to go into your cpanel of your webhost and click where it says add subdomain and write * and then it will add *.mhdassoc.com that way your subdomains will work.

    I hope this will solve your problem. Let me know

    marcdilatush
    Member

    @marcdilatush

    I don’t understand “wordpress backend” in the statement “create that subdomain from your wordpress backend, not your cpanel”. I also don’t understand the need for a wildcard if I am going to have only two or three independent websites that I will administer.
    And “install multiple domain mapping plugin” does not tell me the name of the plugin or what to look for. Do you have a recommendation or examples. It looks like the plugin “Networks for WordPress” is for multiple networks but looks interesting. And “WP Multi Network” has more than 4 stars but has not been tested with 3.5.1 as with other plugins. When I create the addon domain it creates what looks like a subdomain and the status of
    The domain toppremiumproductsgroup.com is aliased to toppremiumproductsgroup.mhdassoc.com
    Thanks for your help. I guess I am a slow learner.

    I don’t understand “wordpress backend” in the statement “create that subdomain from your wordpress backend, not your cpanel”.

    We mean http://example.com/wp-admin/network

    The WP backend always means the wp-admin dashboard 🙂

    I also don’t understand the need for a wildcard if I am going to have only two or three independent websites that I will administer.

    You don’t have to have a wildcard, but you’re on cpanel and it’s REALLY painless to do.

    http://codex.wordpress.org/Configuring_Wildcard_Subdomains#CPanel

    See? Easy 🙂

    DO NOT USE A NETWORK PLUGIN. That’s not what you think it is 🙂

    marcdilatush
    Member

    @marcdilatush

    I see nothing on the Network Admin:MHDAssoc page that allows me to create a subdomain. in reference to “DO NOT USE A NETWORK PLUGIN” what about the statement above:

    Then you install multiple domain mapping plugin, you should be able to make subdomain.mhdassoc.com look like http://www.toppremiumproductsgroup.com since you have that domain on your host.

    I believe this could be done with a redirect. And I have no problem with creating a wildcard, I just don’t understand it’s purpose. Does it somehow

    provide a link between the subdomains and WordPress?

    marcdilatush
    Member

    @marcdilatush

    The following link explains the purpose of wildcard domain fairly well.
    http://en.wikipedia.org/wiki/Wildcard_DNS_record

    A wildcard DNS record is a record in a DNS zone that will match requests for non-existent domain names.
    But I still get the same error after adding the wildcard

    You’re trying to do everything at once, and getting jumbled and confused, and that’s totally understandable. Take a deep breath okay? You’re fine.

    Let’s step back and simplify.

    You want toppremiumproductsgroup.com to be a site run by your Multisite Network, installed at mhdassoc.com

    If that’s still correct, then you need to do this:

    1) REMOVE the add-on domain for toppremiumproductsgroup (yes, remove, get rid of it, it’s messing things up)

    2) Because you have define('SUBDOMAIN_INSTALL', false); in your wp-config, you are using SUBFOLDERS so we can safely ignore subdomains and wildcard DNS for right now.

    3) Create a SITE called toppremiumproductsgroup – this will be accessible at mhdassoc.com/toppremiumproductsgroup

    4) MAKE SURE that site loads. Does it look okay? Great!

    5) Within Cpanel park the domain toppremiumproductsgroup.com on top of mhdassoc.com – If you need help with that, pick up the phone and ask your webhost 🙂

    6) Make SURE that when you go to toppremiumproductsgroup.com it sends you to mhdassoc.com – don’t worry about the page content, just that the page looks like mhdassoc.com’s theme

    7) Install a domain mapping plugin – http://wordpress.org/extend/plugins/wordpress-mu-domain-mapping/

    8) Use that plugin to map toppremiumproductsgroup.com to the toppremiumproductsgroup site

    Done.

    marcdilatush
    Member

    @marcdilatush

    I still get the message “Missing or Invalid Site Address” when I try to add the site from the Add New Site screen from Network Admin: MHDAssoc

    I still get the message “Missing or Invalid Site Address” when I try to add the site from the Add New Site screen from Network Admin: MHDAssoc

    Is the sitename you’re trying to add MHDAssoc? If so, try mhdassoc instead.

    marcdilatush
    Member

    @marcdilatush

    MHDAssoc.com is my main site. I am trying to add toppremiumproductgroup.com . when I look at the Network Admin screen it is the only one that shows up. When I made it an Addon domain it created a directory public_html/toppremiumproductsgroup. Mhdassoc.com does not work unless I redirect it to public_html/wordpress/. of course when I redirect toppremiumproductsgroup.com it goes to the same domain and loads the same page. I deleted the directory public_html/toppremiumproductsgroup/ and there was no change. Could the name be too long?

    marcdilatush
    Member

    @marcdilatush

    Clarification: MHDAssoc.com is the only site that shows up on the NetworkAdmin sites dashboard.

Viewing 15 replies - 1 through 15 (of 22 total)
  • The topic ‘Another "Missing or invalid site address."’ is closed to new replies.