Hello, I have an issue when I create a redirect using cPanel, gives me an error:
Forbidden
You don't have permission to access this resource.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
I made some research, and I try to made manually on .htaccess:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^example.com.br$ [OR]
RewriteCond %{HTTP_HOST} ^www.example.com.br$
RewriteRule ^.?$ https://example.com.br/site [R=301,L]
and also gives the error:
Forbidden
You don't have permission to access this resource.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
I have checked the httpd.conf an it is:
AllowOverride all
So I use an index.html to redirect from http://example.com.br to https://example.com.br/site. But I want to remove this index.html and use the redirect using on .htaccess. But like I said when I try to use on .htaccess gives error 403.
Can you give me some clues what is going on?
Forbidden
You don't have permission to access this resource.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
I made some research, and I try to made manually on .htaccess:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^example.com.br$ [OR]
RewriteCond %{HTTP_HOST} ^www.example.com.br$
RewriteRule ^.?$ https://example.com.br/site [R=301,L]
and also gives the error:
Forbidden
You don't have permission to access this resource.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
I have checked the httpd.conf an it is:
AllowOverride all
So I use an index.html to redirect from http://example.com.br to https://example.com.br/site. But I want to remove this index.html and use the redirect using on .htaccess. But like I said when I try to use on .htaccess gives error 403.
Can you give me some clues what is going on?