If rewrite url with .htaccess, all INSERT query with php is performed twice (unwanted duplication)
My .htaccess:
Additionally you can set a primary or unique key in your SQL table (for example, 'title'). That alone would prevent any duplicate entries.
Browsers automatically request the favicon.ico file by default.
But you don't have any favicon.ico file so it is rewritten (rule in your htaccess).
This is why you have a duplicate execute.
Solutions: