Support » Networking WordPress » Failed to convert to multisite

  • I tried to set-up a multisite WordPress installation but somehow I failed. The main site works but any subsite does not. I get this error:

    The requested URL /wordpress/en was not found on this server.

    This is in my wp-config.php

    
    define( 'WP_DEBUG', false );
    
    define('WP_ALLOW_MULTISITE', true);
    
    define('MULTISITE', true);
    define('SUBDOMAIN_INSTALL', false);
    define('DOMAIN_CURRENT_SITE', 'ip'); //here is the ip of my server, i hided it for //security reasons
    define('PATH_CURRENT_SITE', '/wordpress/');
    define('SITE_ID_CURRENT_SITE', 1);
    define('BLOG_ID_CURRENT_SITE', 1);
    

    and this is my .htaccess

    
    RewriteEngine On
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    RewriteBase /wordpress/
    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]
    
Viewing 8 replies - 1 through 8 (of 8 total)
  • The main site works but any subsite does not.

    Kindly check and confirm if the INNER pages of the main site also work (not just the homepage).

    Thread Starter catalinsendsms

    (@catalinsendsms)

    Nope, no page works. No matter where it is

    Then that’s a PERMALINK issue.

    If you’re running Apache webserver, kindly confirm that you have the mod_rewrite module enabled. This is needed before the .htaccess rules (and hence permalinks) will work.

    If you’re using Nginx, kindle note that Nginx doesn’t recognize or use Apache’s .htaccess rules. In that case, you’ll need to implement the equivalent Nginx rules (Google will be your best resource here).

    Thread Starter catalinsendsms

    (@catalinsendsms)

    I am using apache and I already did what you are suggesting. This is the line that corresponds to mod_rewrite from: /etc/httpd/conf.modules.d/00-base.conf

    /etc/httpd/conf.modules.d/00-base.conf

    Thread Starter catalinsendsms

    (@catalinsendsms)

    LoadModule negotiation_module modules/mod_negotiation.so
    LoadModule remoteip_module modules/mod_remoteip.so
    LoadModule reqtimeout_module modules/mod_reqtimeout.so
    LoadModule rewrite_module modules/mod_rewrite.so
    LoadModule setenvif_module modules/mod_setenvif.so
    LoadModule slotmem_plain_module modules/mod_slotmem_plain.so

    I accidentally pasted smth else

    Can you please run a phpinfo() from your WordPress directory to CONFIRM the module is indeed loaded in the live environment?

    Thread Starter catalinsendsms

    (@catalinsendsms)

    I cannot post a picture but at the section “Loaded modules” I get this core mod_so http_core mod_access_compat mod_actions mod_alias mod_allowmethods mod_auth_basic mod_auth_digest mod_authn_anon mod_authn_core mod_authn_dbd mod_authn_dbm mod_authn_file mod_authn_socache mod_authz_core mod_authz_dbd mod_authz_dbm mod_authz_groupfile mod_authz_host mod_authz_owner mod_authz_user mod_autoindex mod_cache mod_cache_disk mod_data mod_dbd mod_deflate mod_dir mod_dumpio mod_echo mod_env mod_expires mod_ext_filter mod_filter mod_headers mod_include mod_info mod_log_config mod_logio mod_mime_magic mod_mime mod_negotiation mod_remoteip mod_reqtimeout <em>mod_rewrite</em> mod_setenvif mod_slotmem_plain mod_slotmem_shm mod_socache_dbm mod_socache_memcache mod_socache_shmcb mod_status mod_substitute mod_suexec mod_unique_id mod_unixd mod_userdir mod_version mod_vhost_alias mod_dav mod_dav_fs mod_dav_lock mod_lua prefork mod_proxy mod_lbmethod_bybusyness mod_lbmethod_byrequests mod_lbmethod_bytraffic mod_lbmethod_heartbeat mod_proxy_ajp mod_proxy_balancer mod_proxy_connect mod_proxy_express mod_proxy_fcgi mod_proxy_fdpass mod_proxy_ftp mod_proxy_http mod_proxy_scgi mod_proxy_wstunnel mod_systemd mod_cgi mod_php7

    As you can see, mod_rewrite is there.

    Thread Starter catalinsendsms

    (@catalinsendsms)

    Ignore the em tags, I wanted to make it more visible. I had no idea that it does not work inside the code block

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Failed to convert to multisite’ is closed to new replies.