|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Apache on windows + .htaccess
I have run apache on winXp. i have to configure My Custom Error but i
can't access the .htaccess. I have tried many things. I have change out .htaccess file name of httpd.conf file. to ht.acl because i have read some were windows can't read .htaccess file. i have write this statment in in ht.acl file ErrorDocument 404 /404Handler.php I have also created 404Handler.php file. but it won't work when i access thepage which is not our site this page won't call. Any suggation. thanks in advance. |
|
#2
|
||||
|
||||
|
The 404 page should display only when a page can't be found. I think it's 401 that you'll want to look for to display a page when somebody is denied access to a directory. Check apache.org to verify.
__________________
Please don't PM me asking for solutions outside the scope of a thread. Keeping all responses in a thread stands to help others who come along later, which is after all what this forum's all about. |
|
#3
|
|||
|
|||
|
Apache on windows + .htaccess
No luck.
i want some thing like this. if a user come to mysite suppose http://www.abc.com/ and after my URL it will type /david means the URL is being just like that http://www.abc.com/david then we have to redirect the user to some page how can we trap it. when we try it it well give error in apache access log is this [Sat Jul 10 10:21:54 2004] [error] [client 127.0.0.1] File does not exist: c:/program files/apache group/apache/htdocs/abc/david I browser title bar it will show 404 not found. Is there configuration issue that i will configure. please let me know. |
|
#4
|
||||
|
||||
|
A similar error will be displayed in your error_log. If you want to send all such errors to the access log (I don't know why you'd want to do this), you can just change the error log path in the apache conf file so that it matches the access log path. If the ErrorDocument directive isn't working, you may also need to check your main conf file to make sure .htaccess (or ht.acl in your case) is allowed to override http.conf settings. Check apache.org for the docs on this (a search on AllowOverride should help).
|
![]() |
| Viewing: Dev Articles Community Forums > Web Design > Web Server Configuration > Apache on windows + .htaccess |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|