Forums

[resolved] wp-admin, Page Not Found.(sub-directory multisite) (5 posts)

  1. andrewk714
    Member
    Posted 6 months ago #

    Hello, This is my first post.

    I am help someone work on their WP Multisite (sub-directory).

    when you make a new site from the network admin panel, and then go to the site dashboard it comes up with a "page not found" message.

    Does anyone know what could be the problem?

  2. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 6 months ago #

    What's in your .htaccess?

  3. andrewk714
    Member
    Posted 6 months ago #

    This is my .htaccess:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]

    # uploaded files
    RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule . index.php [L]
    </IfModule>

    # END WordPress

    # Change PHP memory limit, time limit,
    # max post size, and max upload file size
    php_value memory_limit 256M
    php_value max_execution_time 300
    php_value upload_max_filesize 32M
    php_value post_max_size 32M

  4. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 6 months ago #

    That's the code for a subDOMAIN install of MultiSite (i.e. sitename.domain.com). If you're using subfolder, try this:

    # 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
    
    # Change PHP memory limit, time limit,
    # max post size, and max upload file size
    php_value memory_limit 256M
    php_value max_execution_time 300
    php_value upload_max_filesize 32M
    php_value post_max_size 32M
  5. andrewk714
    Member
    Posted 6 months ago #

    Thank You! It worked!

Reply

You must log in to post.

About this Topic