I'm trying to achieve the following with .htaccess:
- domain.tld/ displays the content originally at domain.tld/home/
- if you visit domain.tld/home/, you are redirected to domain.tld/ (to avoid duplicate content)
I tried the following, but it resulted in an infinite loop:
RewriteEngine on
RewriteRule ^$ /home/ [L]
RedirectMatch 301 ^/home/$ /
Any ideas? Thank you.