Results 1 to 2 of 2

Thread: .htaccess help

  1. #1
    Join Date
    Apr 2009
    United Kingdom

    .htaccess help

    Hey All,

    I have got the following code in my .htaccess file

    <Limit GET POST PUT>
    order deny,allow
    deny from all
    allow from [MY IP HERE]

    What i want to do is deny access to this folder to everyone except the listed ip but i want to re-direct the user to a url and not just give them the server error.

    What is the code to achieve this?

    Many Thanks
    Richard Howell

  2. #2
    Join Date
    Feb 2005
    In addition to what you already have:
    ErrorDocument 403
    Just make sure that the page you redirect them to isn't subject to the same protection...

    "Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them." - Laurence J. Peter

Similar Threads

  1. .htaccess help
    By andrewgmol in forum Web Design and Content
    Replies: 1
    Last Post: 05-09-2006, 11:58 AM
  2. [htaccess] allow from
    By sernate in forum Hosting Security and Technology
    Replies: 11
    Last Post: 12-13-2004, 11:17 AM
  3. where should the htaccess be
    By dapproid in forum Hosting Security and Technology
    Replies: 3
    Last Post: 08-08-2002, 10:34 AM
  4. .htaccess
    By Studio64 in forum Web Hosting
    Replies: 7
    Last Post: 01-06-2002, 12:35 PM
  5. htaccess on a RAQ
    By FireHawk in forum Hosting Security and Technology
    Replies: 0
    Last Post: 10-03-2001, 12:39 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts