I have sometimes a problem that the browser redirect the url a lot of double urls.
When I enter example.com then the browser redirect to https://www.example.com
Pass
One problem is that google find this with index.php then double content, why?
https://www.example.com – double content with – https://www.example.com/index.php
The next problem is that sometimes the url index.php redirect moretimes.
htts://www.example.com/index.phpindex.phpindex.phpindex.phpindex.phpindex.phpindex.php…
Why this?
.htaccess
# -FrontPage-
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
ErrorDocument 404 https://www.example.com/index.php
RewriteEngine on
# Two lines to redirect from the root web directory to myfile.php. - Do not work with google index bot
# RewriteRule ^$ /index.php [R=301,L]
# RewriteRule ^/$ /index.php [R=301,L]
RewriteCond %{HTTP_HOST} !www.example.com [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301,NC]