473,386 Members | 1,795 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

.htacess ErrorDocument 404 and php

Hi,

I have the strangest error with my .htaccess.

I have something like
ErrorDocument 404 /error/error.php?err=404

But that does not work for php file?

If I look for www.example/test.html, (<= test.html does not exist), then the
error.php file gets loaded, but if I look for www.example/test.php, (also
does not exist) then the standard 404 page gets loaded.

Any reason why that would happen?

Sims
Jul 17 '05 #1
0 1746

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Giobibo | last post by:
I have in writte a simpy .htacces file with the only line: ErrorDocument 404 /my404.php thus if type in the address line of my browser a missing page like: notexistpage.html I get...
7
by: Günther Steinmetz | last post by:
i think it is user friendly to have a default file in each subdirectory. However, i hate to have lots of index.html files. Instead i would like to have a meaningful and unique file name for all my...
1
by: treelife | last post by:
I'm getting and internal server error when | run the following mod_python script. I am actually trying to run Django. Script: from mod_python import apache def handler(req):...
4
by: liyanage | last post by:
I recently worked on error handling and three related issues/questions came up. 1.) I am trying to trigger Apache ErrorDocument handlers by setting appropriate HTTP status codes in my PHP...
0
by: botho.willer | last post by:
Hello! Some time ago I discovered a script on php.net that uses a fopen handle on a .htaccess-protected directory to check the authorization of a user. The crucial Code is this: $handle =...
1
by: Sean128 | last post by:
Hi, I hope someone can help me - this seems like it should be a really simple problem but I've been having trouble trying to solve it all week. I have hosted my website on a Linux server in 1...
0
by: kokababu | last post by:
Hi I have set my httpd.conf in the following way, my reverse proxy is working but ErrorDocument is not working. It is Apache HTTP server 2.x ***SAMPLE**** <VirtualHost *> ServerName...
27
by: parashar123 | last post by:
There are two pl files: realtimechart.pl and realtimedemo.pl realtimechart generates a realtime graph which would an image file(png,gif,jpeg etc) and realtimedemo generates a html file alongwith...
1
by: Jason7899 | last post by:
hi, i have this domain for example: mydomain.com and i want when i enter this url in browser: mydomain.com/test the htacess see the "test" redirect the site for test location and to that for...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.