Sign in

Changing index.html to Index.html

  • This topic has 3 replies, 2 voices, and was last updated 2 weeks, 6 days ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #8172
    Avatar phototonywaghorn

    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 photoTomasz Dziuda

    Hi,

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

    --
    Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!

    #8221
    Avatar phototonywaghorn

    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 photoTomasz Dziuda

    @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).

    --
    Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Changing index.html to Index.html’ is closed to new replies.