Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 373669
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T14:19:50+00:00 2026-05-12T14:19:50+00:00

What characters are allowed in filenames for HTML files on ALL servers (*nix, Windows,

  • 0

What characters are allowed in filenames for HTML files on ALL servers (*nix, Windows, etc.) ?
I’m looking for the “lowest common denominator” that will work on all servers.
USE: I’m naming a file to be served up publicly (Mysite.com/My-Page.htm)

E.g., space? _ – , etc.

E.g., can I have File-Name.htm, File_Name.htm File Name.htm?

Obviously, this needs to work with all servers and browsers. (IIRC, the name is limited by the server not the browser, but I could be wrong).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T14:19:50+00:00Added an answer on May 12, 2026 at 2:19 pm

    What characters are allowed in filenames for HTML files on servers?

    That totally depends on the server. HTTP itself allows any character at all, including control characters and non-ASCII characters, as long as they are suitably %-encoded when requested in a URL.

    On a Unix server you cannot use ‘/’ or the zero byte. (If you could use them, they’d appear in the URL as ‘%2F’ and ‘%00’ respectively.) You also can’t have the specific filenames ‘.’ or ‘..’, or the empty string.

    On a Windows server you have all the limitations of a Unix server, plus you also can’t use any of \/:*?"<>| or control characters 1-31 and you can’t have leading or trailing dot or spaces, and you’ll have difficulty using any of the legacy device filenames (CON, PRN, COM1 and many more).

    This is nothing to do with HTTP; just how filenames work on Windows, which is complicated.

    can I have File-Name.htm, File_Name.htm File Name.htm?

    Certainly. But in the last case you should link to it by URL-encoding the space:

    <a href="File%20Name.htm">thingy</a>
    

    Browsers will usually let you get away with leaving the space in, but it’s not really valid. If you want to avoid having to think about URL-escaping, HTML-escaping and case-sensitive issues, stick to a–z, 0–9 and underscore.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In HTML attribute name=value pairs, what are the characters allowed for the 'name' portion?
I want to remove all special characters from a string. Allowed characters are A-Z
Is there some standard method to remove all characters from string that cannot be
Where can I find a list of allowed characters in filenames, depending on the
The problem: Limit allowed characters in a HTML input to a-z A-Z only. For
I want to remove all special characters from a string. Allowed characters are A-Z
How can only valid characters be allowed in a Windows file system in a
What are the typical characters allowed in text fields in a new user sign-up?
Have you determined a maximum number of characters allowed in FCKEditor ? I seem
Is there a standard for the maximum number of characters allowed in an XML

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.