I have written a script that will creat a sitemap of my site. I need to change file name sitemap.php to sitemap.xml. I have tried several ways to chage it but didn't work. Any help?? Edit: I have used the following line and it changes the file name but showing as text file not as an xml file. Though the source of file shows what I want to see in sitemap.xml. Still looking for help ???
I think that your RewriteRule is Ok, but not the content type set on your php file. You can use "Content-type: text/xml" or "Content-type: application/rss+xml" Take a look at this page http://www.petefreitag.com/item/381.cfm for a solution with both.
I'm trying to do something like this. Would you care to share the contents of your PHP file and your .HTACCESS file?