Urgent Help Needed about IP RANGE REDIRECTION

Discussion in 'PHP' started by sickoo, Mar 18, 2008.

  1. #1
    I wish to redirect ip range of a whole country using the following code. But i don't know how to use it in this code.

    * # permanently redirect specific IP request for entire site
    * Options +FollowSymlinks
    * RewriteEngine on
    * RewriteCond %{REMOTE_HOST} 22\.22\.22
    * RewriteRule \.php$ http://www.destinationwebsite.com/ [R=301,L]

    Thanks in advance.
     
    sickoo, Mar 18, 2008 IP
  2. sickoo

    sickoo Guest

    Messages:
    27
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Is there anybody to help?
     
    sickoo, Mar 18, 2008 IP
  3. sickoo

    sickoo Guest

    Messages:
    27
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Is there any experienced php programmer?
     
    sickoo, Mar 18, 2008 IP
  4. Barti1987

    Barti1987 Well-Known Member

    Messages:
    2,703
    Likes Received:
    115
    Best Answers:
    0
    Trophy Points:
    185
    #4
    PHP is not htaccess, that is more towards Apache.

    Peace,
     
    Barti1987, Mar 18, 2008 IP