Moving host provider and domain
-
Hi,
I dont know if this is the best place to put this but …. lets do it ??
I am migrating from one host provider to another and at the same time from one domain to another. The old domain is install with https and the new domain will be install also with https.
The problem is that I dont want to lose the google seo organic search so Im trying to redirect the old domain to the new domain and include in that the full path.I just create one .htaccess file in the old site with:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.newdomain\.pt
RewriteRule .* https://www.newdomain.pt/%{REQUEST_URI} [R=301,L]
</IfModule>The problem is that this dont work for http but only for https.
Can someone help me with this?
ps: Im using debian8, apache2
Thank you
- The topic ‘Moving host provider and domain’ is closed to new replies.