I want to add / slash after words that are not start with html index.php
for example :
www.domain.com/test ---> www.domain.com/test/
www.domain.com/index.php?test --> Not change
www.domain.com/test/test --> Notchange
I know how to add slash with htaccess but I cant figure out how to not add it at the end of url's start with index.php or have two /(url's like domain.com/test/test)