2

You basically just need to remove the /de/.htaccess file altogether!*1 Your root .htaccess already performs the necessary redirects. (*1 Or remove all the directives and keep the ErrorDocument directive if you need a separate language-specific 404 file. But see the note below regarding the format of the ErrorDocument directive.) The RewriteRule ^index\....


1

Google tag manager and Google Analytics can't run on redirect URLs. When a browser hits a redirect URL, it only uses the HTTP headers. It looks at the Location: header to figure out where the redirect is going. It doesn't use any of the HTML or JavaScript that comes in the body of the response. Your server isn't going to even include your GTM or GA ...


1

Redirecting pages to the home page won't help SEO. Google reports redirects to the home page as "soft 404" in Google Search Console and treats them the same as 404 errors. Reference: 301 Redirecting All Pages To Home Page Are Seen By Google As Soft 404s You should instead redirect pages to the new URL where that content lives. If the content no longer ...


Only top voted, non community-wiki answers of a minimum length are eligible