We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
Can not redirect using .htaccess
Can not redirect using .htaccess
Hello,
I have multiple domains (.com, .net, .org, etc.) attached to a domain.
I am using default nginx and apache configuration.
I added this lines to .htacces:
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.example\.com
RewriteRule (.*) http://www.example.com/$1 [R=301,L]
As a result the browser displays an error message saying the page is not correctly redirected.
Is there something special to do with vestaCP?
Sincerely.
I have multiple domains (.com, .net, .org, etc.) attached to a domain.
I am using default nginx and apache configuration.
I added this lines to .htacces:
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.example\.com
RewriteRule (.*) http://www.example.com/$1 [R=301,L]
As a result the browser displays an error message saying the page is not correctly redirected.
Is there something special to do with vestaCP?
Sincerely.
Re: Can not redirect using .htaccess
that means its something to do with your rewrite codeyokotsumo wrote:Hello,
I have multiple domains (.com, .net, .org, etc.) attached to a domain.
I am using default nginx and apache configuration.
I added this lines to .htacces:
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.example\.com
RewriteRule (.*) http://www.example.com/$1 [R=301,L]
As a result the browser displays an error message saying the page is not correctly redirected.
Is there something special to do with vestaCP?
Sincerely.
try to remove Options +FollowSymLinks and see if it works