Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have recently found a .htaccess trick in which I can remove file extension from the URL, example.com/file.html looks like example.com/file

Now my humor says that I can replace any extension to my own, I want example.com/file.html to be example.com/file.syml

Is this possible?? or I am just daydreaming?? If this isn't possible then how does Microsoft uses MSPX, I think MS stands Microsoft.

share|improve this question
up vote 4 down vote accepted

The AddType directive lets you specify what MIME type(not entirely a complete list) a given file extension should be processed as. To make an arbitrary extension be processed as HTML:

AddType text/html .whatever

Note that there's generally very little reason to do this sort of thing, and it mostly just introduces maintenance work.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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