Support » Networking WordPress » sub install root gives 404

  • Resolved adminmax

    (@adminmax)


    I created a new site at synergieetvitalite.com/massage/ .

    Everything works :
    https://synergieetvitalite.com/massage/wp-admin works just fine
    https://synergieetvitalite.com/massage/welcome works
    etc…

    only page that doesnt work is https://synergieetvitalite.com/massage/ . I have it set to a static page, but no matter what static page it is set to, or if it is set to show recent posts, same 404 .

    Probably something in the htaccess? Here it is :

    RewriteEngine On
    RewriteCond %{HTTPS} off
    RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

    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]

    thanks for the help!

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • The 404 error is from the server itself instead of WordPress which makes me think you might have installed WordPress in the ‘welcome’ subdirectory under ‘massage’ or your index.php in the ‘massage’ directory is broken.

    What files are in that ‘massage’ subdirectory? You should have htaccess and index.php plus either three or more subdirectories or else the index.php and htaccess were munged to run WordPress from the welcome directory where your WordPress was installed there.

    Thread Starter adminmax

    (@adminmax)

    Alright resolved, i had an empty directory matching the name of the new site…

    found this by looking at another problem i have :

    “bcworkz (@bcworkz)
    4 months, 3 weeks ago
    “I have checked the files on the server and the directory is empty”

    The empty directory is the directory/site name you chose for the subsite? That’s the problem then. You cannot have physical directories on your server matching the directory/site name. This is counter-intuitive and a common blunder with multisite.”

    • This reply was modified 2 years, 3 months ago by adminmax.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘sub install root gives 404’ is closed to new replies.