Hi!
How can I change the redirect from the domain https://olddomain.com to another https://newdomain.com ? Both domains have an SSL certificate. I thought about modifying the .htaccess file, but none of the scripts I found online work.
Please help ![]()
Hey @TomaszP4,
The mod_rewrite is one of the modules available in the Apache HTTP Web server, I have assumed you are using this one, let me know.
In your root folder you should have a file called .htaccess, if you don't have it, you can create it and write something like this:
```
RewriteEngine On
RewriteCond %{HTTPS} on
RewriteRule ^(.*)$ https://www.newdomain.com/$1 [R=301,L]
```
This will cause all traffic from your actual domain to be redirected to the new domain.
Let me know how it goes,
Sergio Turpín