# 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/118701>\
**Category:** Uncategorized\
**Created:** [August 8, 2004, 9:41am UTC](https://forum.kirupa.com/t/forcing-a-browser-to-render-a-page-dependent-of-file-type/118701 "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/118701/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:** ![955](https://avatars.discourse-cdn.com/v4/letter/9/4bbf92/32.png) [@955](https://forum.kirupa.com/u/955)\
**Post date:** [August 8, 2004, 5:06pm UTC](https://forum.kirupa.com/t/forcing-a-browser-to-render-a-page-dependent-of-file-type/118701/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:** ![Mik3](https://avatars.discourse-cdn.com/v4/letter/m/ed655f/32.png) [@Mik3](https://forum.kirupa.com/u/Mik3)\
**Post date:** [August 8, 2004, 8:09pm UTC](https://forum.kirupa.com/t/forcing-a-browser-to-render-a-page-dependent-of-file-type/118701/3 "2004-08-08T20:09:03Z")

</div>

Thanks, man!
