Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 05-10-2017, 08:47 AM
gnrx gnrx is offline
 
Join Date: Apr 2009
Posts: 390
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default After change to HTTPS indicate Site Not Secure

Hi,
A few days ago, I change my site to https.
I made the changes in admincp-options-site name
Also, in templates with http to https
Also, I add in my public_html directory (I have a vbadvanced) and in my forum directory, in .httacess this code:
Code:
RewriteCond %{HTTPS} !=on
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
The sewcond and third line are automatically add by server.

Well, access with https but also chrome, like firefox like chromium indicate that, my syte are not secure.

I search and search, but I don't view how are the problem or the issue for this.

Thanks in advanced.
Reply With Quote
  #2  
Old 05-10-2017, 09:40 AM
Flipfloptrader Flipfloptrader is offline
 
Join Date: Jan 2011
Location: Gold Coast
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi

There shouldn't be any need to alter any templates?

Try this for your htaccess:

Change flipfloptrader to your url name.

Code:
#RewriteEngine On

RewriteEngine On
RewriteCond %{HTTP_HOST} www.flipfloptrader.com$
RewriteRule ^(.*)$ https://flipfloptrader.com/$1 [R=301,L]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://flipfloptrader.com/$1 [R,L]

ExpiresActive Off
Reply With Quote
Благодарность от:
gnrx
  #3  
Old 05-10-2017, 09:48 AM
gnrx gnrx is offline
 
Join Date: Apr 2009
Posts: 390
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In the first time, thank you for your help.

Quote:
Originally Posted by Flipfloptrader View Post
Hi

There shouldn't be any need to alter any templates?
Yes, in templates I made some changes, and in stylevar I change the http to https for url images.
In templates I made this:
search for src="http: in admincp->Search in Templates and then replace for https

Quote:
Try this for your htaccess:

Change flipfloptrader to your url name.

Code:
#RewriteEngine On

RewriteEngine On
RewriteCond %{HTTP_HOST} www.flipfloptrader.com$
RewriteRule ^(.*)$ https://flipfloptrader.com/$1 [R=301,L]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://flipfloptrader.com/$1 [R,L]

ExpiresActive Off
A doubt, I have 2 .htaccess, one in my public_html directory (I have vbadvanced) with my code in .htaccess if I access to public_html (portal of vbadvanced) indicate that, my site its secure, when click in forum (folder forum under public_html) appears not secure.
Well, this change, in this 2 .htaccess?
If its yes, I deduce that, the url https://flipfloptrader.com/ I need change for https://flipfloptrader.com/forum under .htaccess in my forum folder, its correct?

Thank you very much!

--------------- Added [DATE]1494417826[/DATE] at [TIME]1494417826[/TIME] ---------------

Hello again,
I t est with your code, and I have a error, because un public_html directory, I have redirect from https://mydomain to https://www.mydomain

This are the codes:
htaccess of public_html:
Code:
RewriteCond %{HTTPS} !=on
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

RewriteCond %{HTTP_HOST} ^mydomain\.com
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule ^(.*)$ https://www.mydomain.com/$1 [R=301,L]
And this, htaccess from my forum directory:
Code:
RewriteCond %{HTTPS} !=on
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
Thanks in advanced.
Reply With Quote
  #4  
Old 05-10-2017, 10:37 AM
Flipfloptrader Flipfloptrader is offline
 
Join Date: Jan 2011
Location: Gold Coast
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try this:

Code:
#RewriteEngine On

RewriteEngine On
RewriteCond %{HTTP_HOST} flipfloptrader.com$
RewriteRule ^(.*)$ https://www.flipfloptrader.com/$1 [R=301,L]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.flipfloptrader.com/$1 [R,L]
Remember to replace with your url.
Reply With Quote
  #5  
Old 05-10-2017, 12:04 PM
gnrx gnrx is offline
 
Join Date: Apr 2009
Posts: 390
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I try this code in my public_html folder (folder of vBAdvanced) and not works my site (enter in bucle mode).

Also, try this code in my public_html/forum folder, load website but continue appears like not secure.

Also, I contact with my host for if can help me.

Thank you very much!

--------------- Added [DATE]1494425777[/DATE] at [TIME]1494425777[/TIME] ---------------

Edit/Add:
In this moment, I view that, the problem appears that the site is not secure appears in index of forum, in some subforums also, but in others not appears, and in the threads (that I test) not appears.
I review all images in index forum and all point to https.

--------------- Added [DATE]1494433886[/DATE] at [TIME]1494433886[/TIME] ---------------

Well, my hosting not provide support for this redirects.

At the moment, your code works in my public_html folder, but in my public_html/forum folder not works because I suppose this code need are different.

Regards!
Reply With Quote
  #6  
Old 05-10-2017, 05:06 PM
Stratis's Avatar
Stratis Stratis is offline
 
Join Date: Jan 2010
Posts: 738
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here you go
Code:
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Exactly as it is.
Reply With Quote
3 благодарности(ей) от:
gnrx, Kane@airrifle, Lynne
  #7  
Old 05-10-2017, 05:46 PM
Mark.B Mark.B is offline
Senior Member
 
Join Date: Feb 2004
Posts: 1,354
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Would help if we had a link to the site.
Reply With Quote
  #8  
Old 05-10-2017, 07:47 PM
gnrx gnrx is offline
 
Join Date: Apr 2009
Posts: 390
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wow, works fine fine, perfect!
I add this code in my 2 .htaccess (public_html and public_html/forum) and works really nice!!
Change http for https and add www if I not type.

Now, go to search the reasson because, in the index forum appears Not Secure, but in subforums appears Secure Site.

Thank you very much!!!!!!
Reply With Quote
Благодарность от:
Stratis
  #9  
Old 05-11-2017, 08:27 PM
gnrx gnrx is offline
 
Join Date: Apr 2009
Posts: 390
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Also, solved last issue (index forum appears Not Secure and in subforums appears Secure Site).
The problem was, in the index forum, I have some blocks, one of this blocks contain http code, but I was changed to https, with this change, continue with No Secure Site.
I deleted this block and now, my index forum appears Secure Site.

Thank you at all!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:13 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04543 seconds
  • Memory Usage 2,254KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (7)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (5)post_thanks_box_bit
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete