WordPress.org

Ready to get started?Download WordPress

Forums

Another "Missing or invalid site address." (23 posts)

  1. marcdilatush
    Member
    Posted 1 year ago #

    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

  2. MisterManu
    Member
    Posted 1 year ago #

    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.

  3. Wrong .htaccess ;)

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

    You want one of the '3.5 and up...' entries.

  4. marcdilatush
    Member
    Posted 1 year ago #

    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!

  5. Where is WordPress installed?

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

    Are you using subdomains or subfolders for your Multisite?

  6. marcdilatush
    Member
    Posted 1 year ago #

    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".

  7. MisterManu
    Member
    Posted 1 year ago #

    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

  8. marcdilatush
    Member
    Posted 1 year ago #

    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.

  9. 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 :)

  10. marcdilatush
    Member
    Posted 1 year ago #

    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?

  11. marcdilatush
    Member
    Posted 1 year ago #

    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

  12. 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.

  13. marcdilatush
    Member
    Posted 1 year ago #

    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

  14. 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.

  15. marcdilatush
    Member
    Posted 1 year ago #

    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?

  16. marcdilatush
    Member
    Posted 1 year ago #

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

  17. MisterManu
    Member
    Posted 1 year ago #

    So toppremiumproductgroup.com is already on your server parked as an add-on domain?
    If so then you should be able to add a subdomain or subfolder (whichever you use) in your wordpress network admin. Add that subfolder/domain and use the plugin Ipstenu gave you: http://wordpress.org/extend/plugins/wordpress-mu-domain-mapping/ With that plugin you should be able to redirect that subdomain/subfolder towards toppremiumproductgroup.com. Then you can just configure it the way you want with a theme.

  18. marcdilatush
    Member
    Posted 1 year ago #

    Yes. toppremiumproductgroup.com is parked on mhdassoc.com and I still get the same message. I cannot add another site in wordpress. Perhaps I need to reinstall wordpress and start from scratch again.

  19. MisterManu
    Member
    Posted 1 year ago #

    If under network admin you cannot add a site that means your wordpress multisite install is somehow broken.

    I would indeed recommend to re-install wordpress and activate multisite if that's not too much trouble for you. It's hard to see what really is your problem if I'm not in front of your computer...

  20. marcdilatush
    Member
    Posted 1 year ago #

    I have been struggling with this for several weeks. Reinstalling and starting over would be less trouble. So I will do that.

  21. marcdilatush
    Member
    Posted 1 year ago #

    I have deleted everything and reinstalled WordPress, multisite, and my primary site. I get the same results except that now I can't go to my primary site except through the dashboard. I must be doing something simple that is wrong or my host has a problem. I am using Hostmonster. Any responders please review all the previous postings before responding.

  22. MisterManu
    Member
    Posted 1 year ago #

    It could be anything, maybe you didn't uninstall wordpress correctly and now there's a conflict with files.
    The best would be to contact your host and see what's the problem they may be able to help you.

    Sorry for not being of much help

  23. You need to stop doing everything all at once :)

    1) Delete everything

    2) Reinstall WP

    3) TEST NORMAL WORDPRESS.

    Does everything work there? If so, move on to...

    4) Activate multisite. Does WP still work? Does your site still work? Do pretty permalinks work?

    If, and ONLY if, that is a yes should you create a second site.

Topic Closed

This topic has been closed to new replies.

About this Topic