4th December 2020, 12:09
#4
1 out of 1 members found this post helpful.
https://stackoverflow.com/questions/...ge-domain-name
When moving a domain name to a new domain
where the only change to the url is the domain name, I use the following redirect in my Apache .htaccess file
RewriteEngine On
RewriteCond %{HTTP_HOST} ^domain.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.domain.com$
RewriteRule ^(.*)$ https://newdomain.com$1 [R=301,L]
5th December 2020, 11:27
#7
1 out of 1 members found this post helpful.
tot ce tine de redirect trebuie setat in .htacces-ul domeniuvechi.ro (zic asta pt ca n-ai mentionat care unde l-ai pus)
daca nu functioneaza htaccess-ul, poate nu ai activ mod_rewrite (desi ma indoiesc)
Membru fondator al societății secrete
Afiliatti.