# Removing Index.php when inserting graphics

**URL:** <https://forum.mautic.org/t/removing-index-php-when-inserting-graphics/23167>\
**Category:** General Discussion\
**Created:** [March 22, 2022, 1:00pm UTC](https://forum.mautic.org/t/removing-index-php-when-inserting-graphics/23167 "2022-03-22T13:00:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lgwapnitsky](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/lgwapnitsky/32/1623_2.png) [@lgwapnitsky](https://forum.mautic.org/u/lgwapnitsky)\
**Post date:** [March 22, 2022, 1:00pm UTC](https://forum.mautic.org/t/removing-index-php-when-inserting-graphics/23167/1 "2022-03-22T13:00:42Z")

</div>

I’m using Mautic 4 behind NGINX. I’m removing the index.php using a rewrite rule, but, when inserting graphics in the template editor, it automatically adds the index.php in. Each time I have graphics, I have to manually go to code and remove them before sending, else my recipients do not see the images.

Is there a way to adjust this setting within Mautic, do I have to manually remove every time, or will I have to remove my rewrite rule?
