Can I use a relative path to my background image

I’m sorting out all the setup configurations for s2members. I am currently working on the custom login screen I’ve got the images for the logo and the background working. However in the file path it is using in the interface it is showing an absolute path i.e. “http://localhost/mysite…” and I would rather use a relative path. Mostly because I’m building this site locally on my desktop machine and I will migrate it to a live web server when I’m finished. Relative paths will still work after the site is moved.

So I guess the question is; if I can use a relative path: what is the proper syntax?

my-images/bg.png
/my-images/bg.png
./my-images/bg.png
//my-images/bg.png…

I would write a note to myself in “my pre-launch check list” to change the URL, instead to spend time to test undocumented features…

1 Like