Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Sep 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    .htaccess question

    Hi, I know literally nothing about .htaccess. In fact, I'm borderline retarded. Here's my question. I have the following in my .htaccess:

    #############
    # block requests for the following files
    #############

    <Files ~ "\.(xml|db|conf|class)$">
    Order allow,deny
    Deny from all
    </Files>

    But I want to allow xml. What do I do?

  • #2
    Regular Coder hinch's Avatar
    Join Date
    Sep 2005
    Location
    UK
    Posts
    923
    Thanks
    25
    Thanked 80 Times in 80 Posts
    delete

    xml|

    from the first line (don't forget to delete thepipe too)
    so that line reads

    db|conf|class

    instead
    A programmer is just a tool which converts caffeine into code

    My work: http://www.fcsoftware.co.uk && http://www.firstcontactcrm.com
    My hobby: http://www.angel-computers.co.uk
    My life: http://www.furious-angels.com


  •  

    Posting Permissions

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