#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2003
    Posts
    60
    Rep Power
    0

    URL rewrite based upon HTTP_REFERER


    Hello,

    I have added following rewrite cond and rewrite rules but it does not work.

    RewriteCond %{HTTP_REFERER} ^http://192\.168\.1\.150/categories/.*$ [NC]
    RewriteRule ^(.*)$ http://www.ebags.com/


    When I hit url : http://192.168.1.150/categories/881-Goes?page=7 in my browser - it loads and url does not rewrite to www.ebags.com


    192.168.1.10 - - [23/Jan/2014:06:46:55 +0000] "GET /categories/881-Goes?page=7 HTTP/1.1" 200 50167 "-" "Mozilla/5.0 (X11; Linux i686) AppleWebKit/535.1 (KHTML, like Gecko) Ubuntu/11.10 Chromium/14.0.835.202 Chrome/14.0.835.202 Safari/535.1"

    192.168.1.10 - - [23/Jan/2014:06:46:58 +0000] "GET /categories/881-Goes?page=7&format=js HTTP/1.1" 200 309 "http://192.168.1.150/categories/881-Goes?page=7" "Mozilla/5.0 (X11; Linux i686) AppleWebKit/535.1 (KHTML, like Gecko) Ubuntu/11.10 Chromium/14.0.835.202 Chrome/14.0.835.202 Safari/535.1"

    Thanks
  2. #2
  3. Did you steal it?
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    14,066
    Rep Power
    9398
    What's your complete .htaccess? You might have other rules conflicting with that new one.

IMN logo majestic logo threadwatch logo seochat tools logo