Mobile app version of vmapp.org
Login or Join
Murphy175

: How to have my customized extension? 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

@Murphy175

Posted in: #301Redirect #Filenames #Htaccess #Iis #Url

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.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Murphy175

1 Comments

Sorted by latest first Latest Oldest Best

 

@Cody1181609

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.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme