WHAT is my relative path?


#1

I am going crazy trying to figure it out.

Help me?


#2

What’s the context?

Free unique IP and $67 off with promo code [color=#CC0000]FLENSFREEIP67[/color] or use [color=#CC0000]FLENS97[/color] for $97 off. Click here for more options


#3

Remote path example (URL): http://example.com/path/to/file.ext

Relative path example: …/to/file.ext
Relative path example2: to/file.ext
Relative path example3: file.ext
(depends on which directory you are in to start with!)

Absolute path (relative from root): /home/username/example.com/path/to/file.ext

Those are your choices.


si-blog | Keystone Websites
Save $97 on yearly plans with promo code [color=#CC0000]SCJESSEY97[/color]


#4

I’m assuming that this is in a config file you’re editing in a particular directory. The path is “relative” to where you currently are (your current working directory).

Relative path example: …/to/file.ext

  • This means if you go up a directory, you’ll find a subdirectory called “to” that has the file in it.

Relative path example2: to/file.ext

  • This means that in your current directory, there’s a subdirectory called “to” that has the file in it.

Relative path example3: file.ext

  • This means that the file is in your current directory.

-Scott