Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 27-04-2009
Member
 
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?
Reply With Quote
  #2  
Old 27-04-2009
Member
 
Join Date: Feb 2008
Posts: 1,848
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
Reply With Quote
  #3  
Old 27-04-2009
Member
 
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
Quote:
Error 500
Reply With Quote
  #4  
Old 27-04-2009
Member
 
Join Date: May 2008
Posts: 2,293
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 ...
Reply With Quote
  #5  
Old 27-04-2009
Member
 
Join Date: Nov 2008
Posts: 1,022
Re: .htaccess and error 403

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

  TechArena Community > Software > Software Development
Tags: , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: ".htaccess and error 403"
Thread Thread Starter Forum Replies Last Post
Why can't I see .htaccess files in Leopard? Sparrow Operating Systems 5 20-10-2010 12:06 AM
.htaccess with a session duration Jaxine Software Development 5 19-01-2010 08:28 PM
How to use .htaccess file Antarjot Operating Systems 3 09-12-2009 01:40 PM
Problem with .htaccess on Mac OS X austin26 Software Development 3 03-12-2009 06:00 PM
.Htaccess problem Jasonholt Software Development 3 06-04-2009 09:08 PM


All times are GMT +5.5. The time now is 10:31 PM.