0
votes
0answers
10 views

Writing Custom 404 handler; Apache stripping URLs?

I've written a custom 404 handler for Apache. The handler looks at the incoming URL (request_url), queries a database table, and responds by redirecting the visitor to the new URL. What should ...
0
votes
2answers
256 views

Handling 404's with HAProxy

I have a bunch of domains passing to a Resin cluster through an HAProxy. The idea is, when I receive a 404 because of a non-existent subdomain, I want to redirect it to the existing page, like this: ...
0
votes
1answer
72 views

Preserving URLs after CMS migration with redirect database and apache http?

We will migrate an entire intranet from one CMS to another. All URLs will change in a non-predictable pattern, but I can capture a file with original,new URLs I can feed into anything. I have hundred ...
0
votes
1answer
142 views

How to redirect a 404 to https in nginx?

For some reason a Redmine installation keeps redirecting some https requests to http. I'd like to change 404 response for the vhost the pages are redirected to back to the https it should have gone ...
0
votes
1answer
799 views

Redirect 404 errors without rewriting the URL

Is it possible to have an erroneous URL remain in the address bar while redirecting the user to a URL within my domain? I want www.domain.com/forum to be the actual site being served in all 404 ...
1
vote
3answers
2k views

Apache: Redirect 404 and ErrorDocument 404 difference

I would like to do a 404 redirect with Apache, and I find several solutions: The .htaccess method. But I don't want to add a .htaccess if not necessary. virtual host method: <VirtualHost ...
2
votes
1answer
2k views

Lighttpd: redirect any request to index.html

I'm trying to send any request to the index.html with lighttpd in order to prevent 404 but I'm not smart enough because either the redirect matches itself or, for calls to subdirs, although the ...
2
votes
1answer
1k views

htaccess redirect of 404 error just prints filename, doesn't execute file

On an Apache host, I have a folder called /thumbs with a program in it called program.php that I will use to create thumbnails. There is a .htaccess file that contains the following lines: options ...