I try to redirect my index using htaccess

RewriteCond %{THE_REQUEST} "GET /index.php HTTP/1.1"
RewriteRule index\.php https://www.myexample.com/ [R=301,L]

I try to redirect in the correct way my index and specially only index.php at the root level. It means https://www.myexample.com/index.php

Is this the correct one?

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.