Sunday, January 23, 2011

Webserver directory index: index.xml?

Hello there,

I am making my first RSS-Feed, and I want to host it like this:

www.example.com/rss/

I tried to name the xml-file "index.xml" and place it inside the directory, however, when I type http://www.example.com/rss/ i arrive at "Index of /rss" where the file is listed as being part of the directory, but it is not loaded automatically.

What can be done about this?

Thank you for your time.

Kind regards,
Marius

  • In .htaccess (or your virtual host config)

    DirectoryIndex index.xml index.html index.php index.shtml
    

    Or, just

    DirectoryIndex index.xml
    

    You could modify your server to automatically load index.xml by altering the DirectoryIndex in the config files.

0 comments:

Post a Comment