How do I redirect traffic from 1 site thats sending it?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Love Sex
    Confirmed User
    • Nov 2004
    • 1905

    #1

    How do I redirect traffic from 1 site thats sending it?

    I want to redirect all incoming traffic from a specific site but cant find any tutorials. Is there a simple code or something to place in my .htaccess file or something similar?
  • Lycanthrope
    Confirmed User
    • Jan 2004
    • 4517

    #2
    RewriteCond %{HTTP_REFERER} ^http://([a-z0-9-]+\.)*shitsite.com/.*$ [NC]
    ReWriteRule .* http://www.redirect.com [R,L]

    This will cover the domain and any sub-domains

    Comment

    • Love Sex
      Confirmed User
      • Nov 2004
      • 1905

      #3
      thanks alot, gonna try this tommorow.

      you got the shitsite right too

      Comment

      • tenderobject
        Need Designs? 312352846
        • Dec 2004
        • 11688

        #4
        Originally posted by Lycanthrope
        RewriteCond %{HTTP_REFERER} ^http://([a-z0-9-]+\.)*shitsite.com/.*$ [NC]
        ReWriteRule .* http://www.redirect.com [R,L]

        This will cover the domain and any sub-domains
        shitsite.com would be the site that you will gonna forward traffic to redirect.com right? lol stupid question yoh!


        NEED DESIGNS?!?

        Comment

        • Love Sex
          Confirmed User
          • Nov 2004
          • 1905

          #5
          Originally posted by tenderobject
          shitsite.com would be the site that you will gonna forward traffic to redirect.com right? lol stupid question yoh!
          Havent tried yet but i assume that is correct.

          Comment

          • dynastoned
            mmm yeah!
            • Feb 2005
            • 5061

            #6
            Heres an example from my .htaccess file on one of my sites.

            Code:
            RewriteEngine on
            RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?sexmovielovers.com.*$ [NC,OR]
            RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?nasty-babes.net.*$ [NC]
            RewriteRule .* http://www.8thstreetlatinas.com/main.htm?id=dynastoned&p=clean [R,L]

            Comment

            Working...