News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

SMF not loading css on other ips or urls than localhost

Started by Simpfey, May 21, 2023, 06:49:33 AM

Previous topic - Next topic

Simpfey

SMF doesn't load css on other urls than localhost, for example: my-ip or url. It works only if I'm on my computer and type localhost, and that means I cannot freely use the website outside of my computer.

I expected that I would change forum url on settings.php but even after CSS didn't load, I am using fusion theme after some time of debugging I fixed error for all local devices but my friend that is not connected to my network didn't get css loaded.

Doug Heffernan

It looks like the paths and urls might not be pointing to the right locations. Run What is repair_settings.php? to straigthen them out and see if it would help.

Simpfey

Hey, I have question what If I change http://url/forum/etc... to just /forum/etc... or forum/etc... ?

Doug Heffernan

Quote from: Simpfey on May 21, 2023, 07:12:29 AMHey, I have question what If I change http://url/forum/etc... to just /forum/etc... or forum/etc... ?

You can change the forum folder name to whatever you want, but make sure to run the repair_Settings.php tool afterwards to straighten out all th epaths and urls.

Kindred

No, you can not use relative paths. They must be abdolute URLs and paths
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Advertisement: