Welcome to WebmasterWorld Guest from 54.196.224.166

Forum Moderators: incrediBILL

Message Too Old, No Replies

Treating .aspx file as .html

     

webdev21

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

5+ Year Member



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.

encyclo

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

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



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.
 

Featured Threads

Hot Threads This Week

Hot Threads This Month