• Resolved Mouk Lab

    (@digit89)


    Hello, I recently added the SSL on all my website and on this one I have issues with subdomains. Here is the htaccess of the FTP root :

    # BEGIN rlrssslReallySimpleSSL rsssl_version[2.3.13]
    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{HTTP:X-Forwarded-Proto} !https
    RewriteCond %{HTTP_HOST} ^elaia.ch [OR]
    RewriteCond %{HTTP_HOST} ^www.elaia.ch
    RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
    </IfModule>
    # END rlrssslReallySimpleSSL
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    If you try to browse https://labo.elaia.ch/webyz/ you are redirected to HTTPS. The real path of this site is https://elaia.ch/_X/webyz but it’s broken as it’s not the way it should be accessed.

    Can you help please ?

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

    (@rogierlankhorst)

    When I click on https://labo.elaia.ch/webyz/ I don’t get redirected to SSL. Did you clear your browser history?

    If you visit the root domain on SSL, your browser will force all sub domains over SSL. So it only works if you don’t visit the root domain over SSL, and have cleared the history.

    Thread Starter Mouk Lab

    (@digit89)

    Ho, that’s incredible. Is there a way to prevent this ?

    You are right it works if I flush the history, but some posts on the main website send you over the subdomains and nothing is in SSL. It’s a really huge work for me if I have to make all subdomains SSL.

    Plugin Author Rogier Lankhorst

    (@rogierlankhorst)

    This is browser behaviour, so there’s nothing you can do about that. I’ve experimented with redirects, but that always ends up in redirect loops.

    Thread Starter Mouk Lab

    (@digit89)

    Yes you are right… Damn this is such annoying, I’ll plan to put everything in SSL so… Thank you Google for your new seo rule…
    Many thanks to you Rogier, the plugin is working very nice and your quick support is really appreciated.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Subdomains redirected even with the htaccess modification’ is closed to new replies.