Results 1 to 5 of 5

Thread: .htaccess and error 403

  1. #1
    Join Date
    Nov 2008
    Posts
    1,022

    .htaccess and error 403

    I have a site. It provides statistics. But for some time, I put in the root of my site one .htaccess for URL Rewriting. Since this file is there, the stats do not work (error 403). And indeed, as soon as I rename the htaccess, stats refunctions.

    I suppose the problem easily arrange with one or two lines in the htaccess but I am a little lost since I have no idea where the actual files that make up their stats pages.

    Have you any idea?

  2. #2
    Join Date
    Feb 2008
    Posts
    1,852

    Re: .htaccess and error 403

    This response is returned by the Apache web server when directory listings have been turned off. Microsoft IIS responds in the same way when directory listings are denied.

    Either you set a password that blocks, or a directory listing is not active

  3. #3
    Join Date
    Nov 2008
    Posts
    1,022

    Re: .htaccess and error 403

    No password in my htaccess ...

    As against if I add the line "Options + Indexes" in my htaccess file (to enable Directory Listing), I get an error 500 on the website. Here's the result:

    Code:
    Options + Indexes
    Error 500

  4. #4
    Join Date
    May 2008
    Posts
    2,297

    Re: .htaccess and error 403

    your stats are in a subfolder? If so, put a .htaccess in the subfolder of the stats with RewriteEngine Off ...

  5. #5
    Join Date
    Nov 2008
    Posts
    1,022

    Re: .htaccess and error 403

    Code:
    RewriteEngine off
    Error 403
    In fact, I just put the line DirectoryIndex index.html in my. htaccess and it worked. It was much easier than expected!

Similar Threads

  1. Why can't I see .htaccess files in Leopard?
    By Sparrow in forum Operating Systems
    Replies: 5
    Last Post: 20-10-2010, 12:06 AM
  2. .htaccess with a session duration
    By Jaxine in forum Software Development
    Replies: 5
    Last Post: 19-01-2010, 08:28 PM
  3. How to use .htaccess file
    By Antarjot in forum Operating Systems
    Replies: 3
    Last Post: 09-12-2009, 01:40 PM
  4. Problem with .htaccess on Mac OS X
    By austin26 in forum Software Development
    Replies: 3
    Last Post: 03-12-2009, 06:00 PM
  5. .Htaccess problem
    By Jasonholt in forum Software Development
    Replies: 3
    Last Post: 06-04-2009, 09:08 PM

Tags for this Thread

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
  •  
Page generated in 1,713,424,873.70017 seconds with 16 queries