htaccess help please =)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • m0rph3us
    Confirmed User
    • Mar 2001
    • 2033

    #1

    htaccess help please =)

    I'm trying to redirect all traffic from a certain domain to a specific page on my server. I sort of have an idea of how to go about it but this code works in the exact opposite way. All traffic from domains other than the two listed are redirected to the page.

    Code:
    RewriteEngine on 
    RewriteCond %{HTTP_REFERER} !http://www.site.com.*$ [NC] 
    RewriteCond %{HTTP_REFERER} !http://site.com.*$ [NC] 
    RewriteRule /* [url="http://www.mydomain.com/dir/"]http://www.mydomain.com/dir/[/url]  [R,L]
    How can i make it work right?

    Also this is only for traffic going to the root of the site. In let's say /images/ i DON'T want this htaccess to apply. Is there a code to add that prevents it to apply the rules to all subdirs of root?

    Thanks


    ------------------
    ADULTBOUNCER AVS!

    * FREE Unlimited Hosting (ANY SIZE VIDEOS ALLOWED!)
    * Free Premium Unique Video Content
    * Partner Programs to resell your AVS site
    * Recurring By-Monthly Payouts
    * Multiple Billers


    GET STARTED NOW!
    <font size="2" face="Tahoma"><a href="http://www.18blowjobs.com/webmasters/?640" target="_blank">Get paid $25 per signup</a> listing over <a href="http://galleries.18blowjobs.com/hosted.html" target="_blank">100 free hosted video galleries</a> - <a href="http://www.18blowjobs.com/webmasters/?640" target="_blank">Check it</a> ยป </font>
  • Chris R
    Confirmed User
    • May 2001
    • 1151

    #2
    I THINK the ! means NOT - try getting rid of it in both places and see what happens.

    Like I said - I THINK - I am not sure.

    ------------------
    TopBucks.com - Converting at better than 1:130
    David Lace Content - Highest Quality Teen Content
    ConversionCash.com - Make Money off your WebTV Traffic

    Comment

    Working...