I'm using IIS without any URL re-writing that include an index.php at the end. The custom permalink structure is: /index.php/%year%/%monthnum%/%postname%/
The problem is that the home_url function doesn't include the index.php, so if I want to refer to a custom page <?php echo home_url() . '/my-page/'; ?>
returns http://domain.com/my-page/ but what I need is http://domain.com/index.php/my-page/ .
Is there a WordPress function that will include the index.php or do I have to put in a custom bit of code?
N.B. I've tried Googling, but most links point to re-writing the URL which is not what I want.