-- Leo's gemini proxy

-- Connecting to dfdn.info:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini;lang=en-US

Characters to Avoid in Filenames and Directories


There are a number of good tips to keep in mind when you name your folders, files, and web, ftp, gopher or gemini pages. These tips will help to keep your URLs short and specific to what they involve. Good file naming will also help with search engine optimization.


Don’t include spaces or other punctuation in your folder or file name. If necessary, use dashes in this manner: “my-new-file.pdf”.

Try to keep your folder or file name short while still making sense.

Use key words.

Use lowercase.

Pick a filename and stick to it. Not renaming your file will keep the file indexed by any search engines.

Try to avoid using years, version numbers, or other naming patterns that date a file. Maintenance is reduced and user experience is sustained when you can just overwrite the old file with the new one each year and keep the filename the same. However, for archiving purposes, different filenames may be important (e.g., FY09). To ensure that your new filename updates properly, please request a redirect when you change a filename.

What Characters are not Allowed in Filenames?


You may only work in one operating system, however your web, ftp, gopher or gemini files will be viewed by numerous systems. Therefore, it becomes essential that you play it safe and avoid common illegal directory and filename characters. Some are illegal because a specific operating system doesn’t support them, others because they are used as variables or reserved characters. Naming conventions are important in web, ftp, gopher or gemini folders as well as for downloadable files such as HTML files, images, PDFs, documents, and spreadsheets. Folder and file names build out the path used for URLs.


Illegal Filename Characters


Do not use any of these common illegal characters or symbols in your filenames or folders:


£ pound

hash

% percent

& ampersand

asterisk

{ left curly bracket

} right curly bracket

\ back slash

< left angle bracket

> right angle bracket

asterisk

? question mark

/ forward slash

blank spaces

$ dollar sign

! exclamation point

' single quotes

" double quotes

: colon

; semicolon

@ at sign

+ plus sign

` backtick

| pipe

= equal sign

emojis

alt codes


In addition to forbidden characters, keep these rules in mind when choosing a folder name or filename:


Don’t start or end your filename with a space, period, hyphen, or underline. Note that the 'detox' program I use to REMOVE spaces and other bad habits replaces spaces with _ but this is in the middle of the filename..

In my view spacees should be illegal in filenames due to the issues they cause.

Keep your filenames to a reasonable length and be sure they are under 31 characters.

Most operating systems are case sensitive; always use lowercase.

Avoid using spaces and underscores; use a hyphen instead. This will also improve your search engine rankings.

Non-ASCII characters need to be escaped.

Bad filename/web, ftp, gopher or gemini browsers see/Good filename

F&A Costs.html/F&amp;A%20Costs.html/index.html

my PDF file#name.pdf/my%20PDF%20file%23name.pdf/my-pdf-file-name.pdf


Tip: use the "dir /b /s > index.gmi" command in Windows or the "ls * > index.gmi" command to write a directory to the file index.gmi, then remove any information other than file names, and make sure the paths are kept correct. Then... Add the required markers and... you have a directory listing of your files. In Gemini it is that easy!


Avoid spaces: The last practice we'll cover is avoiding spaces in file names. Spaces are not supported by all operating systems or by command line applications. A space in a filename can cause errors when loading a file or when transferring files between computers.

-- Response ended

-- Page fetched on Mon May 13 10:26:20 2024