WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Network problems (14 posts)

  1. felgcastro
    Member
    Posted 1 year ago #

    When I try using the Network feature on my production server I run into problems. I set up things the same way and got the Network features added, and created a second site. But when I try to go to the backend or the frontend of the second site in the sub directory I get an "Oops! This link appears to be broken." message.

  2. Did it work on your dev server?

    Did you update the .htaccess?

  3. felgcastro
    Member
    Posted 1 year ago #

    I have WordPress installed in a local server.
    .htaccess file :

    #BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /wordpress/
    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
  4. And you're trying to go to yourdomain.com/wordpress/sitename?

  5. felgcastro
    Member
    Posted 1 year ago #

    Yes. This how access my network control panel
    http://localhost/wordpress/wp-admin

    This is how I try to access a site within the network
    http://localhost/wordpress/calidance/wp-admin/

  6. What happens if you try to go to http://localhost/wordpress/postname?

  7. felgcastro
    Member
    Posted 1 year ago #

    If I go:
    http://localhost/wordpress/calidance

    I get : Oops! This page appears broken. HTTP 404 - File not found.

  8. felgcastro
    Member
    Posted 1 year ago #

    http://localhost/wordpress/wp-admin

    takes me to the dashboard of my main site.

    There is no problem here. From my main site I should be able to
    access the other sites.

  9. Do pretty permalinks work on your main site?

  10. felgcastro
    Member
    Posted 1 year ago #

    Yes, pretty permalinks currently work in the main site.

  11. Is allowoverride set to All in your httpd.conf?

  12. felgcastro
    Member
    Posted 1 year ago #

    Yes allowoverride is set to "All"

    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    # Options FileInfo AuthConfig Limit
    #
    AllowOverride All

  13. felgcastro
    Member
    Posted 1 year ago #

    I found the "AllowOverride" directive in several places.
    Should it be set to "All" in all the places ?

  14. felgcastro
    Member
    Posted 1 year ago #

    Hello Mika

    Yes. The AllowOverride All did the trick.

    Thank you very much

    Felipe

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags