2

I would like to upload some HTML pages with the ending .aspx to our apache root server and I want apache to treat and deliver them just as regular .html files. I know this is unusual, but it is only for a preliminary site for SEO reasons until I get a windows server.

Right now when I view one of the files in my browser, the browser treats them as text/plain instead of text/html.

I already tried the following in my .htaccess file, but it did not seem to have any effect:

AddEncoding text/html .aspx

What's the right way to do this?

Sandra
  • 123
  • 3

1 Answers1

2

i think what you're after is not only Content-Encoding but also Content-Type; try putting AddType next to your AddEncoding:

AddType text/html .aspx

restart apache and check response headers.

pQd
  • 29,981
  • 6
  • 66
  • 109
  • That did it. Thank you so much! I would upvote you, but that requires 15 points of reputation. – Sandra Jan 16 '10 at 17:34