• I installed fresh wp and then active network in subdomain mode. When I create a site under subdomain it straightly goes to 404

    Here is the code of config file,

    define( 'WP_ALLOW_MULTISITE', true );
    
    define( 'MULTISITE', true );
    define( 'SUBDOMAIN_INSTALL', true );
    define( 'DOMAIN_CURRENT_SITE', 'rbangla.com' );
    define( 'PATH_CURRENT_SITE', '/' );
    define( 'SITE_ID_CURRENT_SITE', 1 );
    define( 'BLOG_ID_CURRENT_SITE', 1 );

    Here the htaccess

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # add a trailing slash to /wp-admin
    RewriteRule ^wp-admin$ wp-admin/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule ^(wp-(content|admin|includes).*) $1 [L]
    RewriteRule ^(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]
    </IfModule>

    My domain was added in cf, I added wildcard a record in DNS. How can I solve this problem?

    TIA
    K

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • I added wildcard a record in DNS.

    What DNS record specifically?

    Thread Starter K

    (@kabirbd)

    @gappiah

    A record in Cloudflare DNS

    and in cpanel add subdomain.
    *.example.com located in same folder where wp-config.php is located

    • This reply was modified 1 year, 10 months ago by K.
    Thread Starter K

    (@kabirbd)

    Site are accessible right now but I cant access admin panel for both network and network site.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Subdomain network sites goes to 404 page’ is closed to new replies.