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

dondomainer

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

this is my .htaccess configuration :


Code:
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
 
Hello gentlemen's, hi have asmall problem with to get SSL for certain pages.

this is my .htaccess configuration :


Code:
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

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

See this thread:

https://xenforo.com/community/threads/redirect-https-to-just-one-page.115901/

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:
Back
Top Bottom