Announcement

Collapse
No announcement yet.

https set-up questions

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • [Forum] https set-up questions

    Code:
    RewriteCond %{HTTP_HOST} ^www.(.+)$ [NC]
    RewriteRule ^(.*)$ https://%1/$1 [R=301,L]
    
    # Always Forced http to https
    RewriteCond %{HTTPS} off
    RewriteCond %{SERVER_PORT} 80
    RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
    
    RewriteEngine on
    RewriteCond %{HTTPS} off
    RewriteRule ^/$ https://yoursite.com/ [R,L]
    
    RewriteCond %{HTTP_REFERER} !^https?://yoursite.com/.*$ [NC]
    RewriteCond %{HTTP_REFERER} !^https?://yoursite.com$ [NC]
    RewriteCond %{HTTP_REFERER} !^https?://www.yoursite.com/.*$ [NC]
    RewriteCond %{HTTP_REFERER} !^https?://www.yoursite.com$ [NC]
    RewriteRule .*\.(jpg|jpeg|gif|png|bmp|swf)$ https://youriste.com/ [R,NC]
    The above is what I have in my .htaccess file to redirect http to https
    While looking at the admincp it works. I get the lock symbol in IE and blue bar in FF. Also when looking at direct links to images it works fine.

    But when I go to the site or forums I do not get the IE lock symbol or blue bar in FF.
    It does say the forums and site are partially encrypted.
    AND, I was unable to post while https was active. Blank screen in FF when I submitted a post.

    currently disabled until I can find more time to play with it.
    Last edited by G.I.JOE*MFA*; Sat 15th Sep '12, 9:50pm.

Related Topics

Collapse

Working...
X