Support » Networking WordPress » Create a network – 404

  • Resolved pmpif

    (@pmpif)


    After we created a network we no longer can browse the site. Only the first page of both sites is displayed properly, but any link leads to Error 404. New Posts can be created however, image links appear broken. We have not set up .htaccess. Is that the issue?

    Thank you in advance.

    http://www.pmpif.org / czech.pmpif.org

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

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    We have not set up .htaccess. Is that the issue?

    Yes. Unlike singlesite, Multisite REQUIRES the use of .htaccess (or similar) redirection.

    Thread Starter pmpif

    (@pmpif)

    OK .htaccess set up and working. Now we are experiencing issues with images uploaded to the new blog. The links appear broken both after upload / on the blog.

    for example:
    http://czech.pmpif.org/?attachment_id=32
    http://czech.pmpif.org/files/pmp_pressler1.jpg

    is located in the ‘/wp-content/blogs.dir/2/files’ where it should be.

    Could this be related to the .htaccess not being properly read?
    I have read previous similar posts but couldn’t find a solution yet.
    Thank you in advance!

    Thread Starter pmpif

    (@pmpif)

    # BEGIN WordPress
    RewriteEngine On
    RewriteBase /czech
    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 . index.php [L]
    # END WordPress

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    No, that’s correct.

    WordPress stores the files in /wp-content/blogs.dir/NUMBER/files/etc/etc

    It SHOWS the files in domain.com/files/etc/etc

    That’s what this line is for:
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]

    http://czech.pmpif.org/files/pmp_pressler1.jpg works fine for me. As does http://czech.pmpif.org/?attachment_id=32

    I see no problems here.

    Thread Starter pmpif

    (@pmpif)

    The issue was in .htaccess
    We have fixed RewriteBase /czech to RewriteBase /
    And everything has been running since!

    Thanks for great support!!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Create a network – 404’ is closed to new replies.