1

I know that on a PC you can use symbols ( all except \/:*?"<>| ) in a folder name, but does this apply to server directories?

I would like specifically use the + and - symbols as a name:

example.com/-/subdirecotry example.com/+/subdirectory

Is this possible?

Also, what other symbols are available to use in this way?

  • Also note that an URL path is not required to be related to a folder path ... – Hagen von Eitzen Jan 28 '20 at 0:07
1

It depends on your OS, filesystem and your web server software. A common web server mirrors the directory structure. So if you are able to create the directory on your OS' filesystem your web server should be able to fetch it. It will use the URL encoding in some cases (question mark sign for example).

I would like specifically use the + and - symbols as a name

This is for sure possible with a LAMP stack.

all except \/:*?"<>|

Please see https://en.wikipedia.org/wiki/Filename#Comparison_of_filename_limitations for more info on how this really works.

  • Thank you. Can you list any other symbols that are possible with a LAMP stack? – W Six Jan 27 '20 at 10:09
  • Linux(ext[2-4]): Any byte except NUL or /, see stackoverflow.com/questions/4814040/… – Sergey Jan 27 '20 at 11:22
  • Thanks, that's a big help. – W Six Jan 27 '20 at 11:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.