• Resolved praful07

    (@praful07)


    My friends,

    I am literally got frustrated seeing this error as I have applied all suggestions across the world to resolve this issue on my server.

    I have installed wordpress in my local lan and accessing same using IP address 192.168.0.100. Single home wordpress working fantastic without any issue after enabling multisite also. But as soon as I tried to access new site added under multisite using http://192.168.0.100/demo it gives error 404.

    I installed wordpress for almost 100 times and done all changes on blogs but problem is same. The issue is on linux platform only whereas at the same time when I install wordpress on windows with XAMPP platform it working fine with all physical infrastructure and settings.

    Till the time I changed .htaccess configuration file, change installation directory to home as well as sub directory and so on. On linux also I changed Ubuntu to CentOS but issue is same.

    Please help me to resolve the issue as I tried reading all blogs and implemented one by one without any luck.

    Thanks in advance for your support.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    How are you installing multisite? As a sub-directory installation? Have you checked if mod_rewrite is enabled and on your directory?

    The Apache2 config should include AllowOverride All for the rewrite rules to work.

    <Directory /var/www/html>
                    Options -Indexes
                    AllowOverride All
    </Directory>
    Thread Starter praful07

    (@praful07)

    Jan… Thanks for quick response.

    I am installing multisite using subdirectories and mod_rewrite is enabled.

    Jan… Your reply act as a magic to me as I earlier enabled “AlloOverride All” but it was giving internal server error after doing that changes.

    But I just changed that settings again and working perfect.

    Thanks for your quick response.

    My final configuration for MultiSite sub directories is as below who are new and facing same problem —-

    1. httpd.conf

    <Directory "/var/www/html">
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
    </Directory>

    2. /var/www/html.htaccess fle

    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).*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]
    
    RewriteCond %{HTTP_HOST} ^aaa\-my\.com$ [OR]
    RewriteCond %{HTTP_HOST} ^www\.aaa\-my\.com$
    RewriteRule ^/?$ "http\:\/\/aaa\.my" [R=301,L]

    3. wp-config.php (added below lines)

    define( 'WP_ALLOW_MULTISITE', true );
    
    define('MULTISITE', true);
    define('SUBDOMAIN_INSTALL', false);
    define('DOMAIN_CURRENT_SITE', 'x.x.x.204');
    define('PATH_CURRENT_SITE', '/');
    define('SITE_ID_CURRENT_SITE', 1);
    define('BLOG_ID_CURRENT_SITE', 1);

    Thank you all for your great support.

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    You’re welcome. 😉

    I recommend Options -Indexes just to keep the directory contents from being listed. I’m glad you got it working.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Getting error "404 Not Found" while accessing sub directory multisite portal’ is closed to new replies.