# Forcing a browser to render a page dependent of file type

**URL:** <https://forum.kirupa.com/t/forcing-a-browser-to-render-a-page-dependent-of-file-type/60259>\
**Category:** web dev\
**Created:** [August 8, 2004, 9:41am UTC](https://forum.kirupa.com/t/forcing-a-browser-to-render-a-page-dependent-of-file-type/60259 "2004-08-08T09:41:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mik3](https://avatars.discourse-cdn.com/v4/letter/m/ed655f/32.png) [@Mik3](https://forum.kirupa.com/u/Mik3)\
**Post date:** [August 8, 2004, 9:41am UTC](https://forum.kirupa.com/t/forcing-a-browser-to-render-a-page-dependent-of-file-type/60259/1 "2004-08-08T09:41:45Z")

</div>

Hello,  
For fun I would like to use a “.l337” file ending for my web page. It correctly renders as a “.html” as well. However, I can only get IE to render the page, and I can’t get Netscape based browsers to render the page. Is there a code snippet that I can use to force the browser to render the page as it would a traditional HTML doc?

Thanks,  
Mike.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 8, 2004, 5:06pm UTC](https://forum.kirupa.com/t/forcing-a-browser-to-render-a-page-dependent-of-file-type/60259/2 "2004-08-08T17:06:29Z")

</div>

You need to send the pages as type text/html. Use this .htaccess snippet:

```auto

AddType .l337 text/html

```

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 8, 2004, 8:09pm UTC](https://forum.kirupa.com/t/forcing-a-browser-to-render-a-page-dependent-of-file-type/60259/3 "2004-08-08T20:09:03Z")

</div>

Thanks, man!
