• Resolved wpress2010

    (@wpress2010)


    I enabled SSL with certificates from Let’s Encrypt on a number of WP sites this morning. They all proceeded without any problem, all using Really Simple SSL, all on the same webhost. But one site is not working as expected.

    I get the message from Really Simple SSL that “Your .htaccess does not contain the Really Simple SSL redirect to https, and could not be written, so a javascript redirect is currently added. For SEO purposes it is advisable to use .htaccess redirects…”

    I know how to do that, but even resetting the permissions on the .htaccess file to 777 (the highest that can be set) does not result in Really Simple SSL writing in the necessary redirects upon saving the settings again.

    Where is the Javascript file located? I need to remove it to see what is actually going on here.

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

    (@rogierlankhorst)

    If javascript is currently enabled, it will be inserted inline. It is a setting in settings/ssl/settings, where you can disable it.

    Possibly the plugin cannot detect the needed .htaccess redirect, so won’t insert any.

    In your case, I would manually insert the .htaccess redirect:
    https://really-simple-ssl.com/knowledge-base/manually-insert-htaccess-redirect-http-to-https/

    Thread Starter wpress2010

    (@wpress2010)

    Thank you. After a bit of head scratching, I did insert the code manually in the .htaccesss file – and this time, it worked! My current theory is that the .htaccess file permissions being set to 664 (apparently the default) might be involved here.

    Plugin Author Rogier Lankhorst

    (@rogierlankhorst)

    Good to hear!

    Thanks for the update.

    I had similar problems at first and all works fine now (so redirect through .htacces according to the dashboard of Really Simple SSL). Is is better now to 1) disable the Javascript in the settings and 2) enable the STOP writing to .htacces (because some security settings probably prevent this anyway)?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘SSL not detected on site? Where is Javascript written?’ is closed to new replies.