Results 1 to 2 of 2

Thread: writing a simple .htaccess

  1. #1
    Join Date
    Jan 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default writing a simple .htaccess

    Hi All,

    I'm trying to write a simple htaccess file that will enable everyone to brows a link to some folder.
    Can anyone please help me?

    Thanks,
    Nahum

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    You need to give more information.
    You don't need .htaccess to allow anything.
    Generally, it is used to DENY access to certain folders, to redirect users, to set passwords, etc.

    If you are trying to remove something that blocks access (password, protected folder, etc) so that a user can visit a restricted page, then the best idea is to instead fix the original problem because that may create conflicts if you try to "undo" it with a second configuration.

    So, in general, the answer to your question is to create an entirely blank text document, name it .htaccess and place it in the folder. Technically, that's still using .htaccess, but obviously you don't really need to do that. (I mean this seriously-- for example, if you are combining it with an existing .htaccess file, then you will need to know that.)
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

Bookmarks

Posting Permissions

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