Welcome to WebmasterWorld Guest from 54.196.244.186

Forum Moderators: incrediBILL

Message Too Old, No Replies

Treating .aspx file as .html

     
4:05 am on Apr 1, 2010 (gmt 0)

New User

5+ Year Member

joined:Apr 1, 2010
posts:1
votes: 0


How can I get firefox to treat a file with .aspx extension as an HTML file instead of XML ?

Long version of question:
I have crawled an .aspx website using WinHTTTrack. When Firefox displays the pages, it tries to render them as XML and fails on simple lines like <META=....> as they are not valid XML.

TIA.
2:18 pm on Apr 3, 2010 (gmt 0)

Senior Member from CA 

WebmasterWorld Senior Member encyclo is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Aug 31, 2003
posts:9063
votes: 2


Welcome to WebmasterWorld webdev21 :) The best way (but not the easiest) is to run a local web server such as Apache on your local machine, and access the files served by Apache rather than opening the files directly. You can configure Apache to parse .aspx files as HTML.

If you don't have any of Microsoft's .NET tools you can also probably change the default mine type for .aspx for your local machine only, so that all programs will treat that extension the same as .html.