Re: fancy redirects / 404 passthrough
Chris Davies <[email protected]>
| Newsgroups | gmane.network.tux |
|---|---|
| Message-ID | <[email protected]> |
I'm almost wondering if the apache backend is presenting your 404. Because there are a few issues that just glare at me: 1) the url has a ? -- tux hands that to the backend 2) php is probably set to redirect in tux.mime.types and would pass to the backend 3) the existing domain.com/username doesn't exist AND you say --> APACHE <-- rewrites it to ShowPage.php?user= mod_rewrite in this case would probably do a local redirect rather than a 302 redirect. You've asked for tux to strip the query string off of the url being passed, but your apache process can do that. so the behavior you are documenting -- i.e. TUX dropping the 404 -- sure seems to be against everything I have ever observed. There are times I have seen tux just drop the connection, but usually when there was a hostname where there was no IP/domain.com directory or something like that. show us the mod_rewrite what type of virtual hosting do you have tux set to do? are there any symlinks? On Wed, 2003-10-29 at 11:55, human bn wrote: > Sure, basically I have 40,000 pages created by the > same PHP file. They are accessed via > site.com/[username] but those URL's do not exist - > Apache transparently rewrites them to > site.com/ShowPage.php?user=[username] > > So I figured the easiest way to have Tux duplicate > this behavior would be to just have it fall through to > Apache whenever a file/directory is not found. Except > Tux seems to always handle it as a 404 instead of > having it fall through.