• Resolved Johninbc

    (@johninbc)


    I have a brand new install with the latest version of WP running on a VPS under CentOS fully updated and latest apache, php, mysql, etc.. Set up the multisite ok, after a few glitches (thanks to the other posters for their insight), but when trying to visit the subsites, only the directory listing of the folders associated with those sub’s is displayed. I would expect a similar page to the primary site to come up in each subsite until I get the plugins and content loaded…
    Any insight as to why the subsites are not picking up the primary site template? ( I have enabled the network template and added the template to the subsites. basic 2015 theme is being used for now.)

    I have gone over the code several times and I can’t find where the glitch is.

    Second issue is the client wants to have a blog, a store, a forum and a video portal. None of which is a big deal as there are templates for WP for everything but the vids (we won’t be storing vids on the server, only embedding them into pages). Not really a difficult thing. My issue , however, is coming up with a cross subsite menu for navigating between then all easily. I understand that using the external link option in the menu creation code MAY solve this, but since there is NOTHING in the subfolders for each section, where do I point the external link to?

    Thanks in advance, folks…
    John

Viewing 5 replies - 1 through 5 (of 5 total)
  • Are you shure your Apache server allows htacces files. What you are describing sounds like it is ignoring the WP htaccess settings.

    Thread Starter Johninbc

    (@johninbc)

    WEll it partly works.. It appears that the dashboard for each of the sections is functioning… For example, when accessing the dashboard for the store section from the drop down admin menu at the top of the screen the URL comes up mysite.com/store/wp-admin.php… Same for the other two sections… But when trying to view the store site, which should be mysite.com/store/index.php I only get a directory.
    Therefore I can assume that the redirect in htaccess is functioning, just not when index.php is called.

    Thread Starter Johninbc

    (@johninbc)

    One person suggested…
    Seems that Apache 2.2 needs to see the query string and have those extra codes at the end of the RewriteRule

    so I added

    RewriteCond %{QUERY_STRING} ^(.*&)?page=([^&]+)(&.*)?$ [NC]
    RewriteRule ^index\.php$ /tpb/%2? [R,L]

    And it really didn’t like that…

    Here is my htaccess code as it is now….

    # BEGIN WordPress
    RewriteEngine On
    RewriteBase /
    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

    Taken directly from the setup instructions as provided by wordpress…

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    But when trying to view the store site, which should be mysite.com/store/index.php I only get a directory.

    Wait .. WHAT?

    Why index.php?

    Did you make a physical STORE folder on your server? The subsites are virtual.

    Thread Starter Johninbc

    (@johninbc)

    Thanks for he assistance, but my client has chosen to go another route…
    No subsites, no wordpress… too much hassle.

    Again, thanks.
    John

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘subsite "visit site" links going to directory listing’ is closed to new replies.