SocialEngine staticBaseUrl is not working in production mode

When i change the socialengine site to production mode it does not load the css file, I figured out that my $staticBaseUrl function is not returning the website name. I manually added the path in default layout to load the css file, it works but a font family (centurygothic) is not loading. I am using SocialEngine’s 4.2.4

Add Comment
4 Answer(s)
Best answer

There would be no need to manually adjust the $staticBaseUrl in the layout, as there is a setting in the admin panel (general settings) where you can specify the URL. This is commonly used to set CDN URL.

You should keep in mind that most of the CSS files in production get minimized and appended to each other, so you would only see one query, that would be similar to:

/application/css.php?request=application/themes/default/theme.css

You should also keep in mind that the format of the URL wold make a diference as well for example if you are using

http://example.com/home

or

http://example.com/index.php/home

Chris Stewart Answered on October 31, 2015.
Add Comment

Thanks for the idea I learn many things from here about web hosting.These series look really good you are providing many things.Thanks a lot.

cdnreseller Answered on June 11, 2017.
Add Comment

Thank you so much for your suggestion and discuss these important dedicated servers.

cdnreseller Answered on June 11, 2017.
Add Comment

CDN is a network of numerous servers located in different countries, regions or continents. These edge servers cache static content of website including images, JavaScript, and CSS. When an end-user visits a website, he or she will have the content delivered to web-browser through the nearest server, which boosts loading time.

cdnreseller Answered on June 17, 2017.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.