PDA

View Full Version : HTTPS/SSL issue with sytle sheets?


jnrdavo
01-13-2021, 01:37 AM
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
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 1610583543 at 1610583543 ---------------

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


RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}



--------------- Added 1610679771 at 1610679771 ---------------

<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 1610679945 at 1610679945 ---------------

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


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]


--------------- Added 1610680212 at 1610680212 ---------------

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

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?