SSL wildcard certificate CONFIGURATION PROBLEMS

Hi

I acquired a new SSL certificate from 1and1 that is for my domain cbesprit.fr and all the subdomains.

The certificate is installed.

I installed Domain Mapping and did what is indicated in this post. https://wpmudev.com/blog/ssl-domain-mapping/

It does not work .

Is there anything else I should do for it to work … ( .htaccess? wp-config.php?)

you have access if you wish

Thanks

  • Denitsa
    • WordPress Warrior

    Hello dubernet,

    I hope you’re having a beautiful day!

    I seem to be getting the

    An error occurred during a connection to boutique.cbesprit.fr. SSL received a record that exceeded the maximum permissible length. Error code: SSL_ERROR_RX_RECORD_TOO_LONG

    while trying to load one of your pages via https:// on Firefox. Can you check this article on some info on the nature of this error – this might be an issue with your hosts file:

    https://www.namecheap.com/support/knowledgebase/article.aspx/807/69/firefox-error-code-sslerrorrxrecordtoolong

    Here’s a detailed solution of the issue:

    http://stackoverflow.com/questions/119336/ssl-error-rx-record-too-long-and-apache-ssl/4762977#4762977

    Let me know if this works for you!

    Cheers,

    Denitsa

  • dubernet
    • Site Builder, Child of Zeus

    Hi Denitsa

    I rang 1and1 ( my provider ) and they had to repropagate the IP adrress !

    So the result is that SSL wildcard works now and I am in SSL for the site cbesprit.fr and all the subdomains ….

    But ( i need your help there)

    I can log into my site by doing https://cbesprit.fr which redirect me to the dashboard https://www.cbesprit.fr/wp-admin/

    I can go to the dashboard of all the sites subdomains ( but I have to relog each time for some reason , that was not the case before !!)

    But I cannot access to the Network admin anymore!

    It sends me to a login page https://www.cbesprit.fr/wp-login.php?redirect_to= https://www.cbesprit.fr/wp-login.php?redirect_to=https%3A%2F%2Fcbesprit.fr%2Fwp-admin%2Fnetwork%2F&reauth=1

    If I try to log with the password it fails and if I reset the password it fails too !

    Is it Domain mapping that generates that behavior ?..

    So I cannot access the admin dashboard so I cannot do anything !!

    Any idea why ?

    How can

  • Sajid
    • DEV MAN’s Sidekick

    Hello dubernet,

    Hope you are doing good today :slight_smile:

    I am using domain mapping plugin on my main domain where I have SSL configured and a domain mapped (the mapped domain is not SSL though). For me it is working fine, so I don’t think it is a Domain Mapping plugin issue.

    But we can still verify by deactivating Domain Mapping plugin and then logging into your site again.

    Also, please do it wither other plugins and theme too, if it is not Domain Mapping plugin. This is called basic conflict test that tell us whether the issue is because of a plugin/theme or something else (see flowchart of how to run a conflict). You can also find more details about basic troubleshooting conflict test on our getting support manual.

    Take care and have a nice day :slight_smile:

    Best Regards,

    Sajid – WPMU DEV Support

  • dubernet
    • Site Builder, Child of Zeus

    Hi Sajid,

    thanks for your answer …

    I would love to be able to deactivate the domain plugin but I am stuck because I CANNOT access the network admin zone .

    So I cannot do that . Most of the plugin I use are WPMUDEV plugin and themes ….

    The access to Support and being able to open the platform to you is , hence, not available !

    WHat shall i DO ????

    Is there a way to inactivate plugins from the database??

    Should I have had modified the wp-config file or the .htaccess when using Domain Mapping ?

    anything I can check there ???

    How do I get out of there ?????

    theirry

  • Denitsa
    • WordPress Warrior

    Hey there dubernet,

    I’m sorry to hear abut the inconvenient situation you’re in!

    You can deactivate all your plugins via FTP and also via database. I’d recommend trying the FTP way first, here’s how:

    1) Access your server via FTP

    2) Navigate to the /wp-content folder

    3) Rename the /plugins folder which is found there to something like /plugins-inactive

    4) Make sure you can login to your site

    5) You can rename the plugins folder to /plugins again via FTP and try one plugin at a time until it breaks again

    You can view an article oh how to do that and also disable plugins via database here:

    http://www.wpbeginner.com/plugins/how-to-deactivate-all-plugins-when-not-able-to-access-wp-admin/

    Let us know how it goes!

    All the best,

    Denitsa

  • dubernet
    • Site Builder, Child of Zeus

    Hi Denitsa ,

    I will try that today and let you know .

    Concerning my question :

    Should I have had modified the wp-config file or the .htaccess when using Domain Mapping ?

    Any answer … everything was working fine before I installed that plugin and activated SSL !

    Thanks

  • Denitsa
    • WordPress Warrior

    Hey there dubernet,

    Should I have had modified the wp-config file or the .htaccess when using Domain Mapping ?

    Sorry for overlooking that in my previous answer!

    You need to add the following line to your wp-config.php file, make sure it’s above the /* That’s all, stop editing! Happy blogging. */ line:

    define( 'SUNRISE', 'on' );

    Editing the .htaccess file manually is not usually necessary with the Domain Mapping plugin, however the plugin you’re using to enable SSL usually writes some rules there to force https and that might need editing. You can share its contents with us if you think something might be wrong there.

    You can check more on the plugin’s usage here:

    https://wpmudev.com/project/domain-mapping/#usage

    https://wpmudev.com/blog/domain-mapping-wordpress/

    Looking forward to hearing back from you!

    All the best,

    Denitsa

  • dubernet
    • Site Builder, Child of Zeus

    Hi Denitsa

    this is an extract of my .htaccess ( I see no mention of https there … should it ?):

    RewriteEngine On

    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]

    ## WP Defender – Prevent information disclosure ##

    <FilesMatch “.(txt|md|exe|sh|bak|inc|pot|po|mo|log|sql)$”>

    Order allow,deny

    Deny from all

    This is an extract of my wp-config.php file

    define(‘SUNRISE’, ‘on’:wink:;

    // ** MySQL settings – You can get this info from your web host ** //

    /** The name of the database for WordPress */

    define(‘DB_NAME’, ‘db………’:wink:;

    ….

    bla bla …

    /* Multisite */

    define( ‘WP_ALLOW_MULTISITE’, true );

    define(‘MULTISITE’, true);

    define(‘SUBDOMAIN_INSTALL’, true);

    define(‘DOMAIN_CURRENT_SITE’, ‘cbesprit.fr’:wink:;

    define(‘PATH_CURRENT_SITE’, ‘/’:wink:;

    define(‘SITE_ID_CURRENT_SITE’, 1);

    define(‘BLOG_ID_CURRENT_SITE’, 1);

    /* That’s all, stop editing! Happy blogging. */

    Thre is no mention of FORCE_SSL_ADMIN whatsoever ! should it ?

    thanks to have a look

    Thierry

  • Denitsa
    • WordPress Warrior

    Hello dubernet,

    All seems OK here when one’s not looking for anything in particular. I don’t think you need anything more in your files.

    I can access your site now (www.cbesprit.fr) and when I type an URL with http I get successfully redirected to an https page. Are you still having any issues?

    Warm regards,

    Denitsa