Redirect all pages to the home

I need to redirect all unfound pages for each language. I’ve created a redirect for third domain level to Now I need to understand how to redirect each page not found, to This is the code I’m using in htaccess:

RewriteCond %{HTTP_HOST} ^$ [OR]
RewriteCond %{HTTP_HOST} ^$
RewriteCond %{REQUEST_URI} !^/[0-9]+..+.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/.well-known/pki-validation/[A-F0-9]{32}.txt(?: Comodo DCV)?$
RewriteRule ^/?$ "" [R=301,L]

I’ve multiple redirects for each language, so i need to redirect only pages from the subdomain “en” and repeat the code for each language.

Source link