301 problem

#1
hello
I use OLS with cyberpanel
My problem is that htaccess is not redirecting when I try to redirect old f domain to new domain.
Somebody can help me?

thx
 
#3
Hello, I already solved it.
I put in rewrite cyberpanel area ( in virtual host)
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST} ^olddomain\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.olddomain\.com$
RewriteRule (.*)$ https://newdomain.com$1 [R=301,L]
</IfModule>

Many thanks for your support
 
Top