1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.5 SSL for certain pages does not work as it should.

Discussion in 'XenForo Questions and Support' started by dondomainer, Jul 31, 2016.

  1. dondomainer

    dondomainer Member

    Hello gentlemen's, hi have asmall problem with to get SSL for certain pages.

    this is my .htaccess configuration :

    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^mysite.com
    RewriteRule ^ http://www.mysite.com%{REQUEST_URI} [L,R=301]
    RewriteCond %{HTTPS} off
    RewriteCond %{REQUEST_URI} /linkdirectory
    RewriteCond %{REQUEST_URI} /account
    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L]
    basically what I try to achieve without success is that only , linkdirectory, and account run over SSL, and the rest of the site not.

    I have tried a lot of combinations but either they do not work or do nothing. do you know how to do this the right way?

    Best Regards
  2. Brogan

    Brogan XenForo Moderator Staff Member

    What is the point?

    A site should be HTTPS or HTTP, not a mixture of both.
    StarArmy and dondomainer like this.
  3. Mr Lucky

    Mr Lucky Well-Known Member

    I would like to do the same, SSL for page with transactions etc. non SSL for pages with Adsense.

    See this thread:


    Although @Jake Bunce is extremely helpful and knowledgeable, for some reason I could not get it working, but you may be luckier.

    I'll be very keen to find out if you do get it working as I am losing ad revenue from only having https on all pages
    Last edited: Aug 1, 2016
    dondomainer likes this.

Share This Page