• Oliver

    (@opdigitalsol)


    When trying to access one of my multisite’s dashboard, it fails to a 404. I have checked the wp-config and htaccess and they are both configured as per the GoDaddy guide.

    wp-config

    
    define( 'WP_DEBUG', false );
    //define( 'WP_CACHE', true );
    require_once( dirname( __FILE__ ) . '/gd-config.php' );
    define( 'FS_METHOD', 'direct' );
    define( 'FS_CHMOD_DIR', (0705 & ~ umask()) );
    define( 'FS_CHMOD_FILE', (0604 & ~ umask()) );
     
    /* Add any custom values between this line and the "stop editing" line. */
     
    define( 'FORCE_SSL_ADMIN', true );
     
    /* Multisite */
    define( 'WP_ALLOW_MULTISITE', true );
    define( 'MULTISITE', true );
    define( 'SUBDOMAIN_INSTALL', true );
    define( 'DOMAIN_CURRENT_SITE', 'op-media.co.uk' );
    define( 'PATH_CURRENT_SITE', '/' );
    define( 'SITE_ID_CURRENT_SITE', 1 );
    define( 'BLOG_ID_CURRENT_SITE', 1 );
    /* That's all, stop editing! Happy publishing. */
     
    /** Absolute path to the WordPress directory. */
    if ( ! defined( 'ABSPATH' ) ) {
    	define( 'ABSPATH', __DIR__ . '/' );
    }
     
    /** Sets up WordPress vars and included files. */
    require_once ABSPATH . 'wp-settings.php';

    htaccess

    # BEGIN GD-SSL
    <IfModule mod_rewrite.c>
    Options +FollowSymLinks
    RewriteEngine On
    RewriteCond %{HTTPS} !=on
    RewriteCond %{HTTP_USER_AGENT} ^(.+)$
    RewriteCond %{SERVER_NAME} ^op\-media\.co\.uk$ [OR]
    RewriteCond %{SERVER_NAME} ^jhl\.7c7\.myftpupload\.com$
    RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
    Header add Strict-Transport-Security "max-age=300"
    Header always set Content-Security-Policy "upgrade-insecure-requests"
    </IfModule>
    # END GD-SSL
     
    # BEGIN WordPress
    # The directives (lines) between "BEGIN WordPress" and "END WordPress" are
    # dynamically generated, and should only be modified via WordPress filters.
    # Any changes to the directives between these markers will be overwritten.
    <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>
     
    # END WordPress
    • This topic was modified 2 years, 9 months ago by Oliver. Reason: Redaction

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • You should not share the wp-config file code, please modify that to hide all the DB information and just share defined constants after define( 'WP_DEBUG', false ); line.

    For the 404, please make sure you subdomain is valid and properly configured and have correct DNS and SSL installed.

    Thread Starter Oliver

    (@opdigitalsol)

    Looking like it may be a SSL issue, I will investigate further

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Managed WordPress Multisite – 404 when accessing secondary site dashboard’ is closed to new replies.