Default CSS in IIS

jean bon 1 Reputation point
2021-09-23T17:33:27.53+00:00

Hello there,
It exist a possibility to load CSS file per default ?

In my case I use the option for web server the "directory exploration" ( traduction from french sentence, may be not fully exact ) so I don't load displayed content from HTML page.

If you have a solution, whether it is to display the same content via an HTML page, an option loading a CSS by default or anything else I would be grateful if you would share it with me !

Thank's in advance°

Internet Information Services
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Sam Wu-MSFT 7,036 Reputation points Microsoft Vendor
    2021-09-24T02:47:59.603+00:00

    @jean bon Does this meet your requirements? Use the Default Document feature page to configure the list of default documents. If a user accesses your site or application without specifying a document name (for example, by requesting http://www.contoso.com instead of http://www.contoso.com/Default.css), you can configure IIS to serve a default document such as Default.css. IIS returns the first default document in the list that matches a file name in the directory.

    0 comments No comments

  2. jean bon 1 Reputation point
    2021-09-24T07:45:14.263+00:00

    Hello @Sam Wu-MSFT ,

    I know the existance of this page and I have configured it to load a CSS file per default but it return me the CSS page as expected :).
    It is possible that this is a role in the solution of the problem but unfortunately i really don't know ...


  3. jean bon 1 Reputation point
    2021-09-24T09:30:57.95+00:00

    I have found the correct denomination : Directory Browsing

    Well I have enabled this to show list of desired files, everything is ok.

    Now I want load CSS, how can I do this ?