• Resolved Buhnanah

    (@adventurevault)


    I started the process of transitioning my single site to multisite, but I believe I ran into an issue. When I got to the step in “Network Setup” where I choose if I want the sites to use a sub-domain or sub-directory, it didn’t give me an option to choose. I don’t remember exactly what it said on that page, but something along the lines that my site was not new, so it automatically chose an option for me, and basically I just had the fields on that page for the “Network Title” as well as “Network Admin Email.”

    I was still able to proceed after that, but not sure if I had done something wrong. I then got to the step about editing my .htaccess file, which never showed up on my FTP, even though I did have it set to show hidden files. I even went to “Permalinks” in WP Admin to save it so that my .htaccess would show up in my root, but even then it never did. I did a search for that file, and it ended up finding 3 .htaccess files in different places under /wp-content/ and inside of 3 different folders. Is that normal?

    I then went back to my wp-config file, deleted the lines for multisite, deleted the files in my database for multisite, and reverted back to single. Hopefully nothing went wrong, but I am not sure.

    These are the 3 .htaccess files I found and what the coding is for each one:

    First File:
    deny from all

    Second File:

    <IfModule mod_authz_core.c>
    	Require all denied
    </IfModule>
    <IfModule !mod_authz_core.c>
    	Order deny,allow
    	Deny from all
    </IfModule>

    Third File:

    # Only allow direct access to specific Web-available files.
    
    # Apache 2.2
    <IfModule !mod_authz_core.c>
    	Order Deny,Allow
    	Deny from all
    </IfModule>
    
    # Apache 2.4
    <IfModule mod_authz_core.c>
    	Require all denied
    </IfModule>
    
    # Akismet CSS and JS
    <FilesMatch "^(form\.js|akismet\.js|akismet\.css)$">
    	<IfModule !mod_authz_core.c>
    		Allow from all
    	</IfModule>
    	
    	<IfModule mod_authz_core.c>
    		Require all granted
    	</IfModule>
    </FilesMatch>
    
    # Akismet images
    <FilesMatch "^logo-full-2x\.png$">
    	<IfModule !mod_authz_core.c>
    		Allow from all
    	</IfModule>
    	
    	<IfModule mod_authz_core.c>
    		Require all granted
    	</IfModule>
    </FilesMatch>
    • This topic was modified 4 years, 6 months ago by Buhnanah.
    • This topic was modified 4 years, 6 months ago by Buhnanah.
Viewing 2 replies - 1 through 2 (of 2 total)
  • If your site is older than 30 days before you try to convert it to multisite it will only allow you to convert as a subdomain site which is the best in my opinion anyway.

    This means it will create all sites as subdomains. Mapping will then allow domains or subdomains as most owners would want anyway.

    Subdirectory installs are mostly for membership multisites where you might want to offer sites for users under a single domain.

    If you really needed the subdirectory install there is a way to force that but the better approach is a new install.

    There should have been an htaccess file in your webroot where WordPress resides. Since this was an older site there probably was an htaccess file already and WordPress probably modified the WordPress section to reflect the new multisite.

    Thread Starter Buhnanah

    (@adventurevault)

    @jnashhawkins This site is pretty recent as I started it only 13 days ago. But I am looking to convert it to a subdirectory, as I want the url to be: https://www.site.com and then I will create a https://www.site.com/site-1 and https://www.site.com/site-2, for the two different locations of this business. The general website will be the same throughout and only a few things will change.

    As for the .htaccess file, I just reached out to Namecheap EasyWP and this was their response:

    EasyWP doesn’t have an apache server therefore there is no need in .htaccess files.

    Turns out EasyWP doesn’t allow Multisite Networks…

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Multisite Network Problem | .htaccess File Problem’ is closed to new replies.