Forum Moderators: phranque

Message Too Old, No Replies

How to define AddType application/xml for .asp pages

         

alpacinofr

8:45 am on May 21, 2007 (gmt 0)

10+ Year Member



Hi

I have developed PHP pages on Apache2 server with .asp extensions (this is inherited from ex Windows server for SEO purpose).

I have few RSS feeds on my site as well with .asp extensions

Feeds are validated, but give html/text type to RSS reader or validator.

If I add .asp extension to AddType application/xml on Apache, does it will hurt my normal .asp pages?

Thank you all

jdMorgan

1:21 pm on May 22, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



> If I add .asp extension to AddType application/xml on Apache, does it will hurt my normal .asp pages?

You must provide the information that Apache needs to determine a 'normal' .asp page from a feed page -- That is, the context information needed to tell them apart.

You could enclose the AddType in a <Directory> or <Location> container in httpd.conf, or place it only the .htaccess file where the feeds are actually located. Otherwise, Apache will handle all .asp requests identically.

Jim