wendu Posted August 1, 2009 Share Posted August 1, 2009 hey how can I serve a non-php page like .rss as php? currently it shows the entire code of the script if not set to extension of .php apache on win vista and most recent version of php. i think I need to edit php.ini but couldn't find the neccessary part thanks Link to comment https://forums.phpfreaks.com/topic/168437-serve-non-php-pages-as-php/ Share on other sites More sharing options...
gevans Posted August 1, 2009 Share Posted August 1, 2009 You can do this via a htacces file; AddHandler application/x-httpd-php .rssAddType application/x-httpd-php .rss Link to comment https://forums.phpfreaks.com/topic/168437-serve-non-php-pages-as-php/#findComment-888515 Share on other sites More sharing options...
ldougherty Posted August 1, 2009 Share Posted August 1, 2009 If the .htaccess file breaks your site (500 Internal Server Error) you would need to contact your host to have them add the entry to the Apache configuration (httpd.conf) file. Link to comment https://forums.phpfreaks.com/topic/168437-serve-non-php-pages-as-php/#findComment-888559 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.