http://mysite.org/ and http://mysite.org/index.php are both returning a 200 response. How do I get a 301 redirect for http://mysite.org/index.php?
I have this code in place in the .htaccess file:
<IfModule mod_rewrite.c>
RewriteEngine On
# Removes index.php
RewriteCond $1 !\.(gif|jpe?g|png)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]
# If 404s, "No Input File" or every URL returns the same thing
# make it /index.php?/$1 above (add the question mark)
</IfModule>Please advise as to how I can avoid this duplication.
Thanks,
MikeCJ