Topic awaiting preservation: Apache mod_rewrite directives. |
|
---|---|
Author | Thread |
Paranoid (IV) Inmate From: Minneapolis, MN, USA |
posted 12-04-2001 18:38
Okay Apache gurus, what I want to do is add a set mod_rewrite directives that when a non-existent *.html file is requested, it serves up the equivalent *.php file. |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
posted 12-04-2001 20:04
Instead of mod_rewrite it would be better to create server-side script that would be set as ErrorDocument 404 handler... |
Paranoid (IV) Inmate From: Minneapolis, MN, USA |
posted 12-04-2001 23:42
Very cool. I must admit I'm confused why you think a server side script 404 handler would be better, but I will take your advice. |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
posted 12-05-2001 00:55 |
Paranoid (IV) Inmate From: 127.0.0.1 |
posted 12-05-2001 00:58
I'm not aware of Apache not being able to parse files just because it's name based and not IP based. Our servers support both. We run the LAMP comb (Linux, Apache, MySQL, PHP). Can't say as I've done it to parse .html files for PHP code, we do do it to parse .htm files for SSI code. With name based and IP based sites on the same servers, we don't run into any problems. |
Paranoid (IV) Inmate From: Minneapolis, MN, USA |
posted 12-05-2001 17:12
yeah pugz, I thought it was a bit fishy myself. How can name-based virtual hosts suddenly break file parsing for certain extensions? But when you have a sysadmin as good as mine, you learn to pick your battles, because he gets things done better than you ever could. |