htaccess help

MGDesignsMGDesigns AdminVPS - Virtual Prince of the Server
I need some help with my htaccess. I have my main domain which is modgirldesigns.net in my hosting account, then I have darrenhiles.com as an add-on domain. I have the following as parked domains:-
lurkinback.com
darrenhiles.net
modgirldesign.com
modgirldesign.net

At the moment they're all re-directing to modgirldesigns.net but I need lurkinback.com and darrenhiles.net to direct to darrenhiles.com.

I also need to apply hotlink and leech protection but when I do it prevents images on darrenhiles.com from appearing.

Below is the code I was using for about 5 minutes till I discovered that it was disallowing images from appearing on darrenhiles.com, the last part of the code is what CPanelX added:-
Options +FollowSymLinks
RewriteEngine on
rewritecond %{http_host} ^lurkinback.com
RewriteRule (.*) [URL]http://www.darrenhiles.com/$1[/URL] [R=301,L]
Options +FollowSymLinks
RewriteEngine on
rewritecond %{http_host} ^darrenhiles.net
RewriteRule (.*) [URL]http://www.darrenhiles.com/$1[/URL] [R=301,L]
Options +FollowSymLinks
RewriteEngine on
rewritecond %{http_host} ^[URL="http://www.lurkinback.com"]www.lurkinback.com[/URL]
RewriteRule (.*) [URL]http://www.darrenhiles.com/$1[/URL] [R=301,L]
Options +FollowSymLinks
RewriteEngine on
rewritecond %{http_host} ^[URL="http://www.darrenhiles.net"]www.darrenhiles.net[/URL]
RewriteRule (.*) [URL]http://www.darrenhiles.com/$1[/URL] [R=301,L]
 
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://darrenhiles.modgirldesigns.net/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://darrenhiles.modgirldesigns.net$      [NC]
RewriteCond %{HTTP_REFERER} !^http://darrenhiles.net/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://darrenhiles.net$      [NC]
RewriteCond %{HTTP_REFERER} !^http://lurkinback.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://lurkinback.com$      [NC]
RewriteCond %{HTTP_REFERER} !^http://mgd.modgirldesigns.net/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://mgd.modgirldesigns.net$      [NC]
RewriteCond %{HTTP_REFERER} !^http://modgirldesign.net/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://modgirldesign.net$      [NC]
RewriteCond %{HTTP_REFERER} !^http://modgirldesigns.net/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://modgirldesigns.net$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.darrenhiles.modgirldesigns.net/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.darrenhiles.modgirldesigns.net$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.darrenhiles.net/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.darrenhiles.net$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.lurkinback.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.lurkinback.com$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.mgd.modgirldesigns.net/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.mgd.modgirldesigns.net$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.modgirldesign.net/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.modgirldesign.net$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.modgirldesigns.net/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.modgirldesigns.net$      [NC]
RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC]
A cynic is a person who when smells flowers looks around for a coffin! :rolleyes:
-
ModGirl Design
My ArtWanted Portfolio
Renderosity Gallery
Sign In or Register to comment.