• Resolved julesdev92

    (@julesdev92)


    I recently installed Multisite on my wordpress site livethedreamcommunications.com so that I could manage the site combatkamasutra.com off the same WordPress installation. Both sites are hosted on GoDaddy, with combatkamasutra.com being aliased. Based on the GoDaddy multisite hosting set-up, I should find my secondary site at livethedreamcommunications.com/combatkamasutra (it is set up as a subdirectory.) Those are the basics.

    I’ve encountered a few different issues:

    1) I get a 404 error message when I attempt to navigate to livethedreamcommunications.com/combatkamasutra. This is also the address sent to me after my WordPress Multisite install where I should be able to access the wp-admin panel.

    2) The main site (livethedreamcommunicaitons.com) works, however the “Pretty Permalinks” no longer function.

    I already attempted reinstalling everything, just in case I mis-edited some code along the way, but I am still encountering the same issues.

    Reading other posts, some people have mentioned that adding the .htaccess file to each subdirectory solved the problem for them. Does this mean I also need to do a separate install of WordPress on each subdirectory? I thought Multisite was supposed to eliminate multiple wordpress installs for multiple sites on one hosting account.

    If I do need to install WordPress into each subdirectory, do I also need to set up WordPress Multisite on each subdirectory?

    On the permalinks issue, I’ve read on a few threads that GoDaddy simply does not promote the “Pretty Permalinks” function, however, they worked well for me before the Multisite install.

    Some people noted that permalink issues are caused by problems with the mod_rewrite file or .htaccess file. On GoDaddy, I do not have access to modify this file, but I do know their servers support mod_rewrite. From all the code I’ve looked over, my .htaccess file should function.

    Any helps would be VERY APPRECIATED! I’ve read nearly every forum, thread and blog I can find to no avail. I feel that I am close to a solution, but my novice understanding of WordPress development is causing me to miss out on some key step obvious to more seasoned users.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Don’t install multiple copies of WP, that defeats the purpose.

    What’s in your .htaccess?

    Thread Starter julesdev92

    (@julesdev92)

    This is my current .htaccess file.

    # BEGIN WordPress
    <IfModule mod_rewrite.c>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]
    </IfModule>
    
    # END WordPress

    Also, according the GoDaddy, livethedreamcommunications.com/combatkamasutra is giving me an error because there is nothing in the folder. This makes sense, but I’m am not sure which WP files to put in the folder in order to make the wp-admin functional for this sub directory.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    None. In fact, there shouldn’t BE a combatkamasutra, it’s a virtual folder (come on GoDaddy – You guys support Multisite, you should know this stuff cold!). Delete the folder, please, it’s not needed. WordPress makes virtual folders.

    Thread Starter julesdev92

    (@julesdev92)

    Okay. I removed the folder from my file structure. I also updated the GoDaddy domain manager so both domains point to the root folder. I’m still getting the 404 error, but do I need to wait a bit to give the databases time to propagate?

    I double checked the IPs as well as the nameservers and both domains point to the same locations.

    I have the domain mapping plug in installed on the main site (livethedreamcommunications.com), but I have yet to map any domains. Should I attempt to map the secondary domain to its main address? My understanding was that I needed to map the domain within its own content manager, rather than from the main hosting site.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Well … if you don’t map the domain, then WordPress will never know to take you from mappeddomain.com to maindomain.com/sitename – right?

    Turn on pretty permalinks on livethedreamcommunications.com first. Let’s make sure THAT works.

    Thread Starter julesdev92

    (@julesdev92)

    I apologize for going MIA. I just spent the last few days moving into a new place. The upside, is that when I finally logged onto each site yesterday, things were working!

    Right now combatkamasutra.com is working and I can finally log into the back end to make changes. Now I can actually set templates, the MU-Mapping plug-in, etc.

    The pretty permalinks are still non-functional on both sites. Oddly, when I logged into the FTP, the .htaccess file had been modified from the Multisite code I’d inserted. It now reads:

    ‘# BEGIN WordPress

    # END WordPress’

    I would simply go add the code back in, but I’m afraid everything might revert to the previous non-functioning state. The multisite set-up still appears to be working. Additionally, the wp-config.php file still has all the additional code from the mu-mapping plugin as well as the multisite install.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Go to wp-admin/network/setup.php and get the .htaccess from there.

    Thread Starter julesdev92

    (@julesdev92)

    the setup.php file has this:

    <?php
    /**
     * Network Setup administration panel.
     *
     * @package WordPress
     * @subpackage Multisite
     * @since 3.1.0
     */
    
    /** Load WordPress Administration Bootstrap */
    require_once( './admin.php' );
    
    if ( ! is_multisite() )
    	wp_die( __( 'Multisite support is not enabled.' ) );
    
    require( '../network.php' );

    I am not sure what I should be using from this file as the .htaccess.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    No, sorry, I mean go to yourdomain.com/wp-admin/network/setup.php

    Thread Starter julesdev92

    (@julesdev92)

    Everything is functioning as it should! Thank you for your help!

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Subdirectory, Permalink , and Multisite Problems’ is closed to new replies.