1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[HELP!]Apache error when trying to redirect a domain in CPanelX.

Discussion in 'Domain Names & Parking' started by SparkyBlue, Mar 10, 2010.

  1. SparkyBlue

    SparkyBlue Regular Member

    Joined:
    Sep 17, 2009
    Messages:
    259
    Likes Received:
    80
    Occupation:
    Professional Hobo.
    Location:
    Australia baby!
    Hey peepz,

    I'm trying to redirect a domain to an affiliate link for a campaign, never had problems in the past.

    This time though, I jump in CPanelX and go to redirect - and I get an error:

    Code:
    Apache detected an error in the Rewrite config. Syntax error on line 36 of /home/********/public_html/.htaccess.zgZneh2GDclgJ8rHdSks4gkegvt24:
    RewriteCond without matching RewriteCond section
     Please try again.       
    Hmm.

    My .htaccess is pretty messy, as I'm not really good with Apache.

    Here is it:

    Code:
    RewriteEngine on
    
    RewriteCond %{HTTP_REFERER} !^http://********.net/.*$      [NC]
    RewriteCond %{HTTP_REFERER} !^http://********.net$      [NC]
    RewriteCond %{HTTP_REFERER} !^http://********.net/.*$      [NC]
    RewriteCond %{HTTP_REFERER} !^http://********.net$      [NC]
    RewriteCond %{HTTP_REFERER} !^http://********.net/.*$      [NC]
    RewriteCond %{HTTP_REFERER} !^http://********.net$      [NC]
    RewriteCond %{HTTP_REFERER} !^http://********.net/.*$      [NC]
    RewriteCond %{HTTP_REFERER} !^http://********.net$      [NC]
    RewriteCond %{HTTP_REFERER} !^http://********.net/.*$      [NC]
    RewriteCond %{HTTP_REFERER} !^http://********.net$      [NC]
    RewriteCond %{HTTP_REFERER} !^http://********.net/.*$      [NC]
    RewriteCond %{HTTP_REFERER} !^http://********.net$      [NC]
    RewriteCond %{HTTP_REFERER} !^http://********.net/.*$      [NC]
    RewriteCond %{HTTP_REFERER} !^http://********.net$      [NC]
    RewriteCond %{HTTP_REFERER} !^http://********.net/.*$      [NC]
    RewriteCond %{HTTP_REFERER} !^http://********.net$      [NC]
    RewriteCond %{HTTP_REFERER} !^http://********.net/.*$      [NC]
    RewriteCond %{HTTP_REFERER} !^http://********.net$      [NC]
    RewriteCond %{HTTP_REFERER} !^http://********.net/.*$      [NC]
    RewriteCond %{HTTP_REFERER} !^http://********.net$      [NC]
    
    RewriteCond %{HTTP_HOST} ^.*$
    RewriteRule ^********\/?$ "http\:\/\/********\.com\/" [R=302,L]
    
    RewriteCond %{HTTP_HOST} ^.*$
    RewriteRule ^********\/?$ "http\:\/\/http\:\/www\.********\.com\/main\.php\/" [R=302,L]
    
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    Any help to just get me to do a stupid redirect would be awesome.

    Thanks in advance.
     
  2. SparkyBlue

    SparkyBlue Regular Member

    Joined:
    Sep 17, 2009
    Messages:
    259
    Likes Received:
    80
    Occupation:
    Professional Hobo.
    Location:
    Australia baby!
    scandisk? you mean the cpanelx virus scanner?!
     
  3. SparkyBlue

    SparkyBlue Regular Member

    Joined:
    Sep 17, 2009
    Messages:
    259
    Likes Received:
    80
    Occupation:
    Professional Hobo.
    Location:
    Australia baby!
    Anybody have any idea?!
     
  4. secax

    secax Junior Member

    Joined:
    Feb 7, 2010
    Messages:
    175
    Likes Received:
    139
    have you tried to contact the hosting tech support?