Download
We're evolving to serve you better! This current forum has transitioned to read-only mode. For new discussions, support, and engagement, we've moved to GitHub Discussions.

Changing index.html to Index.html

  • #8172
    Avatar photo[anonymous]

    Hi

    We have a strange intranet that only recognises Index.html with a capital ‘I’.

    Is there a way I could force Publii to publish Index.html or do I just need to edit the ftp files?

    #8188
    Avatar photo[anonymous]

    Hi,

    Unfortunately in this case the only solution will be some custom shell script which will replace file names everywhere in the rendered files.

    #8221
    Avatar photo[anonymous]

    Many thanks @Tomaz – it is a bit of an unusual requirement, but it’s only one filename to change I think.

    I don’t think it will matter whether index or Index is used in the HTML links – I think it’s just that our system only recognises Index.html as the homepage.

    #8223
    Avatar photo[anonymous]

    @tonywaghorn – we are using index.html in many places – changing it for variable filename is risky and can lead to many side effects and changes in the code. Your case is in my opinion very specific edge-case so I do not see a reason to add it to the Publii core. It is a first request for such solution and can be solved in other way (additional shell script which modifies files before deploy).