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