.htaccess question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Direktor
    Registered User
    • Dec 2001
    • 529

    #1

    .htaccess question

    if I have something like this:

    order allow,deny
    deny from some.ip.address
    allow from all


    how can I make it so I redirect the visitor with certain IP to some other URL instead of just giving them a 404 or whatever that's called.

    ------------------
    wrap it up and lick it clean.
  • Phil21
    Confirmed User
    • May 2001
    • 993

    #2
    ErrorDocument 404 http://www.domain.com/page.html

    change 404 to whatever access code (you probably want 501 for what it appears you're attempting to do)

    -Phil
    Quality affordable hosting.

    Comment

    • Direktor
      Registered User
      • Dec 2001
      • 529

      #3
      thanks, i'll give that a try.

      ------------------
      wrap it up and lick it clean.

      Comment

      • Barry Porn
        Confirmed User
        • Oct 2001
        • 257

        #4
        And you want to start a hosting company?

        Originally posted by Direktor:
        if I have something like this:

        order allow,deny
        deny from some.ip.address
        allow from all


        how can I make it so I redirect the visitor with certain IP to some other URL instead of just giving them a 404 or whatever that's called.

        Comment

        Working...