The old site had a (302) redirect from / to /index.shtml.
The new site will be visible on / instead. For SEO reasons we want a 301 redirect from /index.shtml to /.
However if I add that redirecting the htaccess file we get stuck in an infinite loop. So somewhere there still has to be a redirect from / to index.shtml, but where?
The old site was installed in the root directory /. The new site is still in /dev/ (not my choice), however htaccess makes sure when someone goes to / they actually see the site in /dev/. The htaccess is saved in / and not /dev/.
Where could the old redirect from /index.shtml to / be?
My line of code in htaccess that creates a problem:
Redirect 301 /index.shtml http://www.example.com/
Could the error be caused by:
IfModule mod_rewrite.c (with brackets)
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
/IfModule (with brackets)