|
||||||
| HTML Programming Forum discussion covering HTML, XHTML, DHTML and all flavors of HTML. Hypertext Markup Language is used to create websites. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
I need to disable directory listing ability on one of my websites and would like to do this with .htaccess.
I also need to forward the user to a php file in the event of an error page. How is this done? Thanks for your help! ![]()
__________________
DirkFirst |
| Sponsored Links |
|
|
|
|||||
|
Remove Directory Listing
Code:
Options -Indexes Code:
ErrorDocument 404 /error.php ErrorDocument 403 /error.php
__________________
CodeCall Blog | CodeCall Wiki | Shareware Site | Linux Forum | Write a Blog Don't hesitate to ask any questions that you have! Check out our ASCII Calculator! |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Goal: 100,000 Posts
Complete: 67%