• Resolved twistsd

    (@twistsd)


    I am using a bitnami deployed version of WordPress on Azure, and I am having issues with activating SSL, I get a message saying that the .htaccess file is not writable, however I have found several copies of this file which one is the correct one to either alter the file permissions or to edit manually?

    Many thanks

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Rogier Lankhorst

    (@rogierlankhorst)

    On bitnami the htaccess.conf is used. It should be in a conf/htaccess.conf directory.

    Really Simple SSL has a function that tries to detect this setup. What does the notice say exactly? (just to check if the notice has found the .conf setup)

    Thread Starter twistsd

    (@twistsd)

    Rogier,

    Thanks for your reply.

    I am getting the following notices:
    “A definition of a siteurl or homeurl was detected in your wp-config.php, but the file is not writable.

    Set your wp-config.php to writable and reload this page.”

    &

    “Cannot activate SSL due to system configuration.
    Warning
    The .htaccess redirect rules selected by this plugin failed in the test. Set manually or dismiss to leave on WordPress redirect.”

    &

    “To set the HttpOnly secure cookie settings, your wp-config.php has to be edited, but the file is not writable. Add the following lines of code to your wp-config.php.”

    Thanks

    Plugin Author Mark

    (@markwolters)

    The siteurl/homeurl definition in the wp-config.php file can prevent the site from being moved to SSL. These can be removed if the wp-config.php file is writable. For detailed instructions on how to make the file writable see https://really-simple-ssl.com/knowledge-base/htaccess-wp-config-file-not-writable/. This will also fix the third notice.

    In regards to the .htaccess redirect, you can try if manually adding one of the redirects from this article does allow the site to redirect to https://: https://really-simple-ssl.com/knowledge-base/manually-insert-htaccess-redirect-http-to-https/

    Thread Starter twistsd

    (@twistsd)

    I have checked the file permissions on the wp-config file in the bitnami/wordpress folder and it is set to 644.

    Plugin Author Mark

    (@markwolters)

    It could be there’s something else preventing the plugin from editing the wp-config.php file, for example a security configuration. Alternatively, you can manually remove the following lines from your wp-config.php file to allow the plugin to activate SSL:

    define( ‘WP_HOME’, ‘https://example.com’);
    define( ‘WP_SITEURL’, ‘https://example.com’);

    You can also copy the secure cookie code from the notice and add it to the wp-config.php file manually.

    • This reply was modified 3 years, 2 months ago by Mark.
    Thread Starter twistsd

    (@twistsd)

    Mark,

    Thanks, what is the file path for the wp-config.php file please?

    Thanks

    • This reply was modified 3 years, 2 months ago by twistsd.
    Plugin Author Mark

    (@markwolters)

    The wp-config.php is located in the root directory of your site which is usually the public_html/ folder.

    Plugin Support jarnovos

    (@jarnovos)

    Hi @twistsdgmailcom,

    Have you managed to activate SSL on this setup already, or can we provide any further assistance?

    Just let us know.

    Kind regards,
    Jarno

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘.htaccess not writable’ is closed to new replies.