Go Back   vb.org Archive > vBulletin 5 Connect Discussion > vB5 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-13-2021, 01:37 AM
jnrdavo jnrdavo is offline
 
Join Date: Aug 2007
Posts: 122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default HTTPS/SSL issue with sytle sheets?

Hey guys,

I've just added a certificate to one of my sites, and will do the same for the others once this works!

I've run through the basics, install cert, changed in vb settings to https etc.. Then go to maintenance and run 'rebuild sytles'... All this worked without an issue/error.

I then was told to go to https://www.whynopadlock.com/ and add in a redirect for all HTTP traffic to https... I did that (in the .htaccess file)..

So, two issues.

1. When I now go to the site (https://www.ozaudi.com), it looks stuffed (see pic)... Looks like sytle sheet issue.

2. When I go back to whynopadlock.com, it says that there is still an issue with https redirect..

Does this take a 'while' to propagate around the internet, or should any changes to .htaccess file be immediate (I did reboot server after change).

I'm happy to post up contents of .htaccess if that helps.
Attached Images
File Type: png bmw error 1.png (112.0 KB, 0 views)
Reply With Quote
  #2  
Old 01-13-2021, 01:57 AM
yilmaz's Avatar
yilmaz yilmaz is offline
 
Join Date: Sep 2004
Posts: 751
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Normally, https (ssl) will be active within 24 hours.

you-site/admincp/options.php?do=options&dogroup=address

Enter admincp and change http to https

You cannot make this change, forum links will force http and will not read css etc. files on the site.
Attached Images
File Type: png screenshot-www.yilmaztv.com-2021.01.13-05_06_28.png (30.8 KB, 0 views)
Reply With Quote
  #3  
Old 01-13-2021, 02:44 AM
jnrdavo jnrdavo is offline
 
Join Date: Aug 2007
Posts: 122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks. I've already changed the https in vb5...

vBulletin URL
Core URL

both changed yesterday to https..
Reply With Quote
  #4  
Old 01-13-2021, 03:04 AM
napy8gen napy8gen is offline
 
Join Date: Jan 2006
Location: port ++++son
Posts: 519
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think you should ask your hosting company to fix the .htaccess
Reply With Quote
  #5  
Old 01-13-2021, 04:20 AM
jnrdavo jnrdavo is offline
 
Join Date: Aug 2007
Posts: 122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have full access to the site (cpanel), so I can change it.

Just need to work out why what I put in doesn't work..

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

Anybody else have any ideas?

This is what whynopadlock asked to add to the .httaccess file



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


So, the file now looks like this:


RewriteEngine on

# -FrontPage-

IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName ozbmw.com
AuthUserFile /home/ozbmw/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/ozbmw/public_html/_vti_pvt/service.grp

RewriteCond %{HTTP_HOST} ^ozbmw.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.ozbmw.com$
RewriteRule ^/?$ "http\:\/\/www\.ozbmw\.com\/forums\/index\.php" [R=301,L]

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

# php -- BEGIN cPanel-generated handler, do not edit
# Set the ?ea-php74? package as the default ?PHP? programming language.
<IfModule mime_module>
AddHandler application/x-httpd-ea-php74 .php .php7 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
Reply With Quote
  #6  
Old 01-15-2021, 12:21 AM
jnrdavo jnrdavo is offline
 
Join Date: Aug 2007
Posts: 122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can anybody tell me what you are seeing on the screen? Does it look 'fine', like a normal forum, or does it look like it's missing css files?
Reply With Quote
  #7  
Old 01-15-2021, 12:56 AM
yilmaz's Avatar
yilmaz yilmaz is offline
 
Join Date: Sep 2004
Posts: 751
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

https: // does not display correctly

-----

This is how the https redirect in my .htaccess file

PHP Code:
RewriteEngine On
RewriteCond 
%{HTTPSoff
RewriteRule 
(.*) https://%{HTTP_HOST}%{REQUEST_URI} 
--------------- Added [DATE]1610679771[/DATE] at [TIME]1610679771[/TIME] ---------------

HTML Code:
<base href="http://www.ozaudi.com/forums/" /><!--[if IE]></base><![endif]-->
base url why http? why not https? see settings enter admincp change settings from http to https

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

There are multiple redirects in .htaccess. delete them, it will be easier if you add my above data.

PHP Code:
RewriteCond %{HTTP_HOST} ^ozbmw.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.ozbmw.com$
RewriteRule ^/?$ "http\:\/\/www\.ozbmw\.com\/forums\/index\.php" [R=301,L]

RewriteEngine On
RewriteCond 
%{HTTP_HOSTozbmw\.com [NC]
RewriteCond %{SERVER_PORT80
RewriteRule 
^(.*)$ https://www.ozbmw.com/$1 [R,L] 
--------------- Added [DATE]1610680212[/DATE] at [TIME]1610680212[/TIME] ---------------

Must be RewriteBase if forum is not installed in root or installed in a separate folder

PHP Code:
RewriteBase /forum
Reply With Quote
  #8  
Old 01-17-2021, 01:50 AM
jnrdavo jnrdavo is offline
 
Join Date: Aug 2007
Posts: 122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks again yilmaz

I've done a clean-up and I think it has worked.

Does the website look 'normal' now?
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 08:06 AM.


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.06921 seconds
  • Memory Usage 2,261KB
  • Queries Executed 12 (?)
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
  • (1)bbcode_html
  • (3)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (2)postbit_attachment
  • (8)postbit_onlinestatus
  • (8)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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete