|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
i try to use .htacess script to make some
custom error pages. But it doesn't work !! Can anyone help me ?? I wrote this on my .htaccess file : ErrorDocument 404 http://mydomain/404.html ErrorDocument 500 http://mydomain/500.html etc I put .htaccess file on public_html directory Do I miss something ??? Thx before !!! NB : The server use Apache web server |
|
#2
|
|||
|
|||
|
Did you set the AllowOverride directive in your httpd.conf file?? If you haven't try setting it according to the Apache manual (All should do it).
|
|
#3
|
|||
|
|||
|
Thx for the information !!
I set the Allow Override in the httpd.conf from None to All And it works !!! My next question is : I read in the httpd.conf guide and it said that there're some choices to fill the Allow Override like Option, File Info, etc If I wanna make some custom error pages and some password protection with the .htpasswd, what choice is the best ??? Or maybe someone can explain to me what each option mean ?? Thank's before !! ------------------ ** It's the world of Oscario ** |
|
#4
|
|||
|
|||
|
Go to -> http://www.apache.org/docs/mod/core.html#errordocument and look at the "Override:" line. It stated "FileInfo" so that's the one you needed.
Then go to -> http://www.apache.org/docs/mod/core.html#allowoverride and check out the AllowOverride directives. |
|
#5
|
|||
|
|||
|
Thx alot for your information.
It gives me lots of new knowledge !!! See ya !!!! ------------------ ** It's the world of Oscario ** |
![]() |
| Viewing: Dev Shed Forums > System Administration > Security and Cryptography > help me with the .htaccess |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|