vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB5 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=262)
-   -   HTTPS/SSL issue with sytle sheets? (https://vborg.vbsupport.ru/showthread.php?t=328517)

jnrdavo 01-13-2021 01:37 AM

HTTPS/SSL issue with sytle sheets?
 
1 Attachment(s)
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.

yilmaz 01-13-2021 01:57 AM

1 Attachment(s)
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.

jnrdavo 01-13-2021 02:44 AM

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

vBulletin URL
Core URL

both changed yesterday to https..

napy8gen 01-13-2021 03:04 AM

I think you should ask your hosting company to fix the .htaccess

jnrdavo 01-13-2021 04:20 AM

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

jnrdavo 01-15-2021 12:21 AM

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?

yilmaz 01-15-2021 12:56 AM

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


jnrdavo 01-17-2021 01:50 AM

Thanks again yilmaz

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

Does the website look 'normal' now?


All times are GMT. The time now is 12:55 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03308 seconds
  • Memory Usage 1,739KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_html_printable
  • (3)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete