SparkyBlue
Regular Member
- Sep 17, 2009
- 260
- 80
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:
Hmm.
My .htaccess is pretty messy, as I'm not really good with Apache.
Here is it:
Any help to just get me to do a stupid redirect would be awesome.
Thanks in advance.
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.