I have changed domain name on my website and having problem with setting up redirection.
The 301 redirect only work on main domain. olddomain.com to nydoamin.com
How do i setup redirections on the whole site? The link structure is the same. Example: olddomain.com/info/ to newdomain.com/info ?
My .htaccess is today:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
I am using cloudways and have set newdomain as primary-domain and olddomain to additional domain.