Cpanel Redirection doesn´t work

Discussion in 'Apache' started by Ricardo Corai, Mar 1, 2011.

  1. #1
    I set a redirection on CPanel:
    RewriteCond %{HTTP_HOST} ^subdomain.example.com$ [OR]
    RewriteCond %{HTTP_HOST} ^www.subdomain.example.com$
    RewriteRule ^/?$ "http\:\/\/subdomain\.newdomain\.net" [R=301,L]

    If I use www.subdomain.example.com the redirection is correct
    But if I use subdomain.example.com it´s redirecting me to a CGI page: subdomain.example.com/cgi-sys/defaultwebpage.cgi

    Could you help me to fix this?
     
    Ricardo Corai, Mar 1, 2011 IP