[resolved] New DNS on a multisite install (7 posts)

  1. juliejcdesign
    Posted 3 years ago #

    I have somewhat of a big problem. I built a multisite network website in a sub-folder of my main domain. http://www.juliecloutier.com/mylene

    My client had a static website hosted elsewhere at godaddy http://www.mylenepaquette.com

    I wanted her to be hosted with Bluehost on my account, So while we left the dns at godaddy, I builted her new wordpress website on a multi-site Install. Then when we were ready to show this new website online, I went in bluehost and assigned the domain http://www.mylenepaquette.com to that sub-folder of my primaru domain http://www.juliecloutier.com/mylene. Then I went in godaddy and changed the DNS to point to blue host. But the first trouble was that when we typed in our browser http://www.mylenepaquette.com we would get re-directed to http://www.juliecloutier.com/mylene but the adress in the browser would show http://www.juliecloutier.com/mylene and not http://www.mylenepaquette.com as it should with the new DNS being set to bluehost and that sub-folder /mylene being assigned the domain http://www.mylenepaquette.com

    So that being unacceptable, with the technician at blue host we decided to try something and we went in the wp-config file and changed those 2 lines
    define('DOMAIN_CURRENT_SITE', 'www.juliecloutier.com');
    define('PATH_CURRENT_SITE', '/mylene/');
    define('DOMAIN_CURRENT_SITE', 'www.mylenepaquette.com');
    define('PATH_CURRENT_SITE', '/');

    From there we would get a database connection error message when trying to view http://www.mylenepaquette.com but I could still see the site at http://www.juliecloutier.com/mylene (which I thought was pretty weird since the DOMAIN CURRENT SITE had been changed for http://www.mylenepaquette.com.

    I could even login at http://www.juliecloutier.com/mylene/wp-admin and could view the dasboard of http://www.juliecloutier.com/mylene site and http://www.juliecloutier.com/mylene/en site but as soon as I tried to go in the Network Dashboard I was getting an error message.

    After that, the technician at bluehost tried a few changes in the database (I think he tried to change the url of the site in the database) to solve the error message we got when going to http://www.mylenepaquette.com He was unable to solve the database error and said to me that everything looked fine in the database except that he could see 2 database one for mylenepaquette.com and the otherone for mylenepaquette.com/en I don't know anything about database so I could not tell why this was.

    Soon after that we started to get re-direction loop error message. When we tried to go to one adress or the other it would start to re-direct in a loop. And I could not see the website anymore. So I went and put an static html file to see if it would stop looping and it did.

    But now I am stuck with a static page but I have no clue how to get my wordpress site to be shown. If you try to type http://www.mylenepaquette.com/index.php you will see the re-direction to http://www.juliecloutier.com/mylene, I guess if there was not an static index.html file there it would loop back and forth.

    Is there anything wrong in the index.php file to loop indefinitely like that ? Or does it come from the database ? Can this be cause by the network install ? Blue host just told me they do not support my case because it is a multi-site network and they told me to see on wordpress ?

    What should I do, I can't re-build the whole site. And since I can't even access it, I am unable to export the pages menus and posts to re-import them in a fresh install.

    Can anyone help ?

  2. juliejcdesign
    Posted 3 years ago #

    Is it possible that my .htaccess file got screwed up along the way when we pointed the new DNS ?

    It seem all that was written in it relating to the network has disappear, all I got now in the .hta file is :

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

    # END WordPress

    instead of
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]

    # uploaded files
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [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).*) $1 [L]
    RewriteRule ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]

  3. u201303
    Posted 3 years ago #

    I have done what you want done with [moderated] It should be straight forward. Also, no it is not weird that you can go through either domain with the folder after the domain name and see the same site. This is normal, and even wanted by some.
    IMO, your problem is purely a dns and site management problem and a bluehost hosting support problem.

    First I take it that you made an A record on your DNS to point to the same IPA of the existing site.
    In this case, you would install your WP as having the URL of http://www.mylenepaquette.com/mylene. Access it as http://www.mylenepaquette.com/mylene and you should see the site.
    You probably will need to setup a redirect so any traffic going directly to http://www.mylenepaquette.com is redirected to http://www.mylenepaquette.com/mylene.
    Yes, your site would always be http://www.mylenepaquette.com/mylene and not http://www.mylenepaquette.com.
    That is all.

    As you found out, you should also be able to see it to some partial working order at http://www.juliecloutier.com/mylene. This does not really matter. The only reason it is partial, is because of the way WP works, and not the hosting.

    By the way, whenever I want to install any CMS, like WP, onto a existing or production site, I always do a Full-Backup first. Just in case. [moderated]

  4. WPyogi
    Forum Moderator
    Posted 3 years ago #

    @u201303 - per the forum guidelines, please refrain from promoting/discussing hosting service on these forums.

  5. juliejcdesign
    Posted 3 years ago #

    In fact the solution was to go in the database itself and change all occurences of http://www.juliecloutier.com/mylene by http://www.mylenepaquette.com So in the process I learned the basic skill for working with PHP my admin.
    Thank you for trying to help and sorry for mentioning host.

  6. u201303
    Posted 3 years ago #

    I thought you said your hosting provider BH, already did that, and failed.
    Okay, so your hosting provider did not do it correctly then.
    Good, you found it.
    Although, it is not really BH's responsibility to do it anyways, as most know.

    If WP original got installed to the correct address, then you would have not needed to consume all that time and effort.

    Unfortunately, unlike other CMSs, WP is extremely picky about the URL it works with. With other CMS you can just have various domain names, subdomains, URLs all directed to the same site, and they work fine, and without having to make any URL changes in the DB or through the control panels. That's why, when possible, I try to have it installed to the URL intended for use.

  7. u201303
    Posted 3 years ago #

    In addition, I think you should have been able to accomplish the same thing through the WP control panel for the WP settings. Ya, I know what you mean, I also use the PHPmyAdmin control panel through the WHW1 hosting control panel as a secondary measure. Just as you used it through BH's hosting control panel. People think it is part of the hosting control panel. It is not. It is provided through the hosting control panel and not part of it, and is really an open source software started a long, long time ago. phpMyAdmin is a cool interface for database management. Awesome tool. Glad you got exposed to it. Now that you have used it, I suspect you will use it more often. Next play with the download feature of it, and search, and that will speed up your locating of such things like URLs or other words or phrases, or numbers.
    If you have never tried to manipulate your DBs without such a helpful DB management software, then you do not know how extremely lucky you are that all these tools are easily available for data maintenance/management and they work so well, and are easy.

    Just saw a typo on my above post. Meant to say, "If WP originally got installed....."

Topic Closed

This topic has been closed to new replies.

About this Topic