Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Baun installed on subdomain - CSS does not show #19

Open
ghost opened this issue Jun 10, 2016 · 9 comments
Open

Baun installed on subdomain - CSS does not show #19

ghost opened this issue Jun 10, 2016 · 9 comments

Comments

@ghost
Copy link

ghost commented Jun 10, 2016

Hello Sir developer of Baun CMS,

I almost installed it specifically on a subdomain with SSL under https://bauncms.liebrecht-projekte.de

The real problem is that CSS and design are not displayed. What make it so I can fix it I need?

This Baun installation is with me in the FTP account, and in the case of Plesk under /bauncms.liebrecht-projekte.de/baun/public/index.php

Something is probably not linked correctly. Can you help me with this?

Thanks in advance.

@xatlas
Copy link

xatlas commented Nov 23, 2016

I had this problem and noticed that if you load page with https, css is still loaded with http, so browser blocks it (mixed-content).

I'm using CloudFlare so I can change one setting in CF to make all http requests through https. That solved my problem. Without CF maybe you can make some rewrite rules to point css files to use https.

I hope this can point somewhere to find a real solution.

@marksouthard
Copy link
Member

This is odd as the {{ theme_url }} should output https:// if that is your site URL. @xatlas can you link to the site you were having issues with? Is the HTML outputting http:// still?

I might update to strip out the http so that the asset files are loaded properly regardless of SSL.

@xatlas
Copy link

xatlas commented Nov 24, 2016

Yes @marksouthard , you can check it at https://blog.atlas.sx/

@marksouthard
Copy link
Member

In your layout.html file are you using {{ theme_url }} to load the stylesheet?

<link rel="stylesheet" href="{{ theme_url }}/style.css">

@xatlas
Copy link

xatlas commented Nov 29, 2016

Yes, I have this:

<link rel="stylesheet" href="{{ theme_url }}/bower_components/skeleton/css/normalize.css">
<link rel="stylesheet" href="{{ theme_url }}/bower_components/skeleton/css/skeleton.css">
<link rel="stylesheet" href="{{ theme_url }}/style.css">

@marksouthard
Copy link
Member

Have you set a base_url in the config/app.php file? If not, can you try setting that with https://

@xatlas
Copy link

xatlas commented Nov 29, 2016

If I set this

         // Path to the themes folder
         'themes_path' => BASE_PATH . 'public/themes/',
         // The currently active theme
         'theme' => 'baun',
         'base_url' => 'https://',

I get this:

<link rel="stylesheet" href="https:///themes/baun/bower_components/skeleton/css/normalize.css">
<link rel="stylesheet" href="https:///themes/baun/bower_components/skeleton/css/skeleton.css">
<link rel="stylesheet" href="https:///themes/baun/style.css">

@marksouthard
Copy link
Member

Sorry, I meant https://blog.atlas.sx for your site.

@xatlas
Copy link

xatlas commented Nov 29, 2016

Yes, this works for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants