In http website is loading without any problem. When I changed to https it affects alignment.
Its not loading any CSS files and Js files in https.
Can any one suggest me how to fix this.
In http website is loading without any problem. When I changed to https it affects alignment.
Its not loading any CSS files and Js files in https.
Can any one suggest me how to fix this.
You'll need to provide a link to a page for an accurate answer, but my initial suspicion is that you'll be linking to a style sheet (or possibly javascript) with a full URL containing http rather than https. If so, use relative links.
Most likely there are external css or javascript files that are still linked through http. Most browsers will stop loading mixed content and usually will throw warnings.
To answer your question-comment on Richard's answer, usually it's not something you have to do in the configuration or the htaccess file to fix this.
What you have to do, is to open your browser console and check for the errors and warnings. If you can't find something obvious in the console, then you should start examining the source code of your site. Start from the header and try to spot any external assets files that are linked with "http://"
instead of https://
or having relative links.
Keep going down to the body as well, as it's possible that http linked stuff might exist there as well.
After identifying those, you should find from where these files are getting called. It can be from the template, from modules, components etc.
Some extensions may give the option to change the way they load external files. Others might not. If you find any such extension, I would suggest to report this to its developer, in order to release an update with that will fix this issue.
More info on: "How to fix a website with mixed content"