Hi folks. I've got a problem. Need your help a lot !
I just wanna 301-redirect root directory site.com to site.com/. After redirection it should have folloving server headers:
site.com - 301 redirected to site.com/
site.com/ - 200
To make this happened I used folloving .htacces code:
RewriteCond %{HTTP_HOST} ^site\.com$
RewriteRule ^(.*)$ http://site.com/$1 [L,R=301]
and get folloving server headers:
site.com - 301 redirected to site.com/
site.com/ - 301 redirected to site.com/
and infinite loops redirection.
What I did wrong ? why my site.com/ redirects to itself ? How can I make redirection with desired server headers ?