vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=328517

HTTPS/SSL issue with sytle sheets?
by jnrdavo
13 Jan 2021 02:37

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 13 Jan 2021 02:57

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 13 Jan 2021 03:44

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

vBulletin URL
Core URL

both changed yesterday to https..

napy8gen 13 Jan 2021 04:04

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

jnrdavo 13 Jan 2021 05:20

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 13 Jan 2021 at 23:19 ---------------

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 15 Jan 2021 01:21

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 15 Jan 2021 01:56

https: // does not display correctly

-----

This is how the https redirect in my .htaccess file


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

--------------- Added 15 Jan 2021 at 02:02 ---------------


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

base url why http? why not https? see settings enter admincp change settings from http to https

--------------- Added 15 Jan 2021 at 02:05 ---------------

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


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

--------------- Added 15 Jan 2021 at 02:10 ---------------

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


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


jnrdavo 17 Jan 2021 02:50

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 22:20.

Powered by vBulletin® Version 3.8.14
Copyright © 2021, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.