Forums

Domain Mapping Changes Don't Save & Can't Get New Domain To Show (22 posts)

  1. imagitude
    Member
    Posted 4 months ago #

    Hi there,

    I'm running the latest WP and have followed the instructions (including Otto's install advice) on installing the WP MU domain mapping plug-in.

    Two problems:

    1) After setting the domain mapping settings once, they will not change again. I can't de-select or change the IP address - if I press Save, it goes back to what I originally put in there.

    2) For the life of me, although I've pointed the DNS servers successfully toward it (and it shows when I go to the domain in my browser), I cannot figure out how to add a new site. When I go to the New Site page, it insists that any new site will be a subdomain of the current domain that I use WP for.

    Frustrated and hoping someone can point me in the right direction.

  2. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 4 months ago #

    For #1, grab the development version of the plugin instead, and see if that helps.

    #2 isn't a problem. You always start with the new site as a subdomain. Once it's made, then you map it :)

  3. imagitude
    Member
    Posted 4 months ago #

    Thanks @Ipstenu.

    I will work on #1, but the current (stuck) settings are ok for now.

    As for #2, I've just gone through those hoops - promising, but when I go to the Dashboard for the new site, I get a 404 error. Thoughts?

  4. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 4 months ago #

    For #1 go here http://wordpress.org/extend/plugins/wordpress-mu-domain-mapping/download/ - Get the 'development version' and manually install it. Please :) The devs know there's an issue.

    When I go to the New Site page, it insists that any new site will be a subdomain of the current domain that I use WP for.

    THAT is what you're supposed to see. So you make your site as subdomain.domain.com right? Does that work?

  5. imagitude
    Member
    Posted 4 months ago #

    @Ipstenu - I've followed your directions:

    #1 Installed development version - worked. Now have the option of changing settings (!).

    #2 I've got the new site registered (it shows up under Sites), but again, when I go to the Dashboard, I get a 404 ("The requested URL /index.php was not found on this server"). When I go to "visit" the site, I see the barebones directory.

    So, my question is, if this is all as it should look, how does WP get installed to the networked site?

    (and thank you for your help!)

  6. imagitude
    Member
    Posted 4 months ago #

    Doing some more reading-up on this and I think I get it: there is no new installation per-se.

    So...the problem is figuring out why I'm getting the 404.

    After more reading, would it be something wrong in my .htaccess file? I've got two of them on my server - one in the root html directory and another in the directory of the site/blog I'm having problems with.

    The .htaccess file in the problem directory only contains WP-related instructions and is much shorter than the one in the root directory. I can post the contents here if you think this is the source of the problem.

  7. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 4 months ago #

    Wait ... WordPress is in a SUB directory?

    Like domain.com/wordpress/

    You can't map domains with that, it won't work.

  8. imagitude
    Member
    Posted 4 months ago #

    No, sorry - WP is installed in the root directory (where my top domain resides). The new blog/site I'm having problems with is in a subdirectory - there is no WP installation in that directory.

  9. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 4 months ago #

    I've got two of them on my server - one in the root html directory and another in the directory of the site/blog I'm having problems with.

    Then why do you have a 'directory' for the subsite with it's own .htaccess.

    You didn't go and make a folder on your server for the site, did you?

  10. imagitude
    Member
    Posted 4 months ago #

    I do have a subfolder for the 2nd blog, yes. Is this the problem I'm having? It was there before I began installing the domain mapping plugin, so it never occurred to me that this may be the problem. So, in other words, everything should be in the root/main folder?

  11. Andrea_r
    team pirate
    Posted 4 months ago #

    yes.

  12. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 4 months ago #

    Delete the PHYSICAL subfolder for the 2snd site. All folders are virtual and handled by WordPress's magical .htaccess that is in your root folder :) By making a 'real' folder, you're overriding WP's ability to use it.

  13. imagitude
    Member
    Posted 4 months ago #

    Hi Ipstenu,

    I should mention that on Otto's Multisite Domain Mapping Tutorial (which a lot of people link to), he says (at the bottom): "In older versions of the domain mapping system, you had to use a subdomain installation and wildcard DNS for domain mapping to work. This is no longer the case, domain mapping works just fine with subdirectories."

    Now...I followed your advice. I deleted the subdirectory and started from scratch, installing the development version files and making the subsequent changes to wp-config and .htaccess.

    I set up the new domain (in Sites). It starts as a subdomain, but then I go to Edit and change it to what it should be (as per your note). I have both my root domain and the new domain appearing in the Sites page. However, when I click Dashboard for the new domain I get a 404 (URL /wp-admin/ not found), and when I click Visit I get a 404 (URL / not found).

    So, not to be stupid, but I don't get it. I'm going around in circles, all because I don't want to waste space on my server with another WP base install. I really want to understand how this works, but - although I appreciate all your help - I'm getting nowhere.

    What am I doing wrong? Should the path of the new domain be changed?

  14. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 4 months ago #

    Then lets step back.

    You can use EITHER a subdomain install or a subfolder install of Multisite.

    In neither case should a PHYSICAL folder exist.

    So when I said 'Delete the PHYSICAL subfolder for the 2snd site' what I meant was that. If you had the site up and working at domain.com/sitename, and you ALSO made a folder called sitename on your server, ONLY delete the folder on the server.

    DO NOT delete anything from your wp install.

    Stop trying to map for a second, though. Does the site subsite.domain.com work at all? Yes or no?

  15. imagitude
    Member
    Posted 4 months ago #

    Hi,

    Following your question, I went to Sites and instead of newsite.com, I registered newsite.domain.com. I am still getting the same errors.

    Click on Dashboard: 404 - /wp-admin/ not found

    Click on Visit: 404 / not found

    Follow email link to log-in: 404 /wp-login.php not found

  16. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 4 months ago #

    1) Is your install set up correctly for subdomains? If you don't know, what's in your .htaccess?

    2) Did you correctly setup wildcard subdomains?

  17. Andrea_r
    team pirate
    Posted 4 months ago #

    3) do pretty permalinks work on your main site?

  18. imagitude
    Member
    Posted 4 months ago #

    Hi there,

    1) Here is the content of my .htaccess:

    # BEGIN WordPress
    
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # uploaded files
    RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule . index.php [L]
    
    # END WordPress
    RewriteCond %{HTTP_HOST} ^imagitude.ca$ [OR]
    RewriteCond %{HTTP_HOST} ^www.imagitude.ca$
    RewriteRule ^/?$ "http\:\/\/imagitude\.com" [R=301,L]
    
    RewriteCond %{HTTP_HOST} ^imagitude.net$ [OR]
    RewriteCond %{HTTP_HOST} ^www.imagitude.net$
    RewriteRule ^/?$ "http\:\/\/imagitude\.com" [R=301,L]
    
    RewriteCond %{HTTP_HOST} ^imagitude.org$ [OR]
    RewriteCond %{HTTP_HOST} ^www.imagitude.org$
    RewriteRule ^/?$ "http\:\/\/imagitude\.com" [R=301,L]
    
    RewriteEngine off
    <IfModule mod_suphp.c>
    	suPHP_ConfigPath /home/matt/public_html/php.ini
    	<Files php.ini>
    		order allow,deny
    		deny from all
    	</Files>
    </IfModule>

    2) I don't know much about wildcard subdomains - they have been referred to, but not as part of any setup instructions I've been using.

    3) Funny you should mention this, @Andrea_r - I went to my main blog to check the permalink settings (which should be "pretty"), and when I went to check via my sites archives, guess what: going to archive pages gives me a 404 now. I don't know if this is a result of anything I've done in trying to setup multisite, or if this is a separate mess.

  19. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 4 months ago #

    20-1 it's separate.

    Check if mod_rewrite is on for your server.

    BTW, you should always have WordPress's .htaccess code at the END Of your file. Saves some load :)

  20. Euthenics
    Member
    Posted 4 months ago #

    I'm encountering the same fist problem as stated (using version 0.5.4.1)

    1) Each time I tried change the domain mapping settings, it will not change. When I tried input the IP address and deselect some settings like turning off the remote login and redirect administration page - if I press Save, it goes back to the default settins.

    Can't seems to update and change it. Anybody knows what seems to be problem here?

    Thank you in advance.

  21. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 4 months ago #

    As has been said before, grab the DEVELOPMENT version

    http://downloads.wordpress.org/plugin/wordpress-mu-domain-mapping.zip

  22. Euthenics
    Member
    Posted 4 months ago #

    My apology. I thought the development version is similar as the present latest version when I read the changelog.

    The problem is resolved once change to the development version of domain mapping and sunrise php files.

    Thanks for the assistance.

Reply

You must log in to post.

About this Topic