[WTB] Need someone to write something up in htaccess for me.

Discussion in 'Apache' started by helleborine, Jun 10, 2010.

  1. #1
    I want to redirect according to referring page.

    Example:

    LINKS from evilwebsite/pageONE.html >>> redirects to mywebsite/pageONE.html
    LINKS from evilwebsite/pageTWO.html >>> redirects to mywebsite/pageTWO.html

    Etc.

    PM me with your rates *if* what I want is even possible to do!
     
    helleborine, Jun 10, 2010 IP
  2. tolra

    tolra Active Member

    Messages:
    515
    Likes Received:
    36
    Best Answers:
    1
    Trophy Points:
    80
    #2
    
    RewriteEngine on
    RewriteCond %{HTTP_REFERER} ^http://www\.badsite1\.com [NC]
    RewriteRule (.*) http://mysite/$1 [R]
    
    Code (markup):
    The above redirects based on the page from the bad site so if the page was badpage.html it'll send to mysite/badpage.html if the bad site page was xyz.html then it'll send to mysite/xyz.html

    Hope that's what you want.
     
    tolra, Jun 12, 2010 IP
    helleborine likes this.