certify
06-06-2001, 03:18 PM
How do you disable directory listing using .HTACCESS?
![]() | View Full Version : .HTACCESS questions certify 06-06-2001, 03:18 PM How do you disable directory listing using .HTACCESS? jtan15 06-06-2001, 04:36 PM Put this in the htaccess file: Options -Indexes Hope this helps! :) certify 06-07-2001, 12:53 AM Thanks, it works perfectly! :) By the way I'm using RAQ3 and by putting this in .HTACCESS it will pop up this message box "You do not have permission to access the requested file on this server." everytime I try to browse the directory. My question is can it be forwarded to particular page instead? jtan15 06-07-2001, 01:00 AM Sure. Just add this to the htaccess file: Options -Indexes ErrorDocument 403 /location_of_permission_denied_page.html That should do the trick! :) certify 06-07-2001, 01:35 AM Thanks again. :) I look up on the net and found that by using this it will enable me to SSI using .htm AddType text/html .shtml .shtm .htm .html AddHandler server-parsed .shtml .shtm .htm .html But when I tried I won't work and instead lots of junk charcters is displayed. :confused: certify 06-07-2001, 01:46 AM It dind't work because i tried to parse .cgi files. How do you parse .cgi files? Madman2020 06-07-2001, 10:14 AM Originally posted by certify It dind't work because i tried to parse .cgi files. How do you parse .cgi files? On Cobalt's to parse CGI's you have to disable the cgiwrapper function. If you create an .htaccess for that particular directory, use the following directive: AddHandler cgi-wrapper .cgi You can use that in httpd.conf to disable it globally as well. |