|
Home > Archive > Apache Server configuration support > August 2005 > A little question
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| Lampa Dario 2005-08-18, 2:50 am |
| Hi,
I would like to know if I could set Apache to handle asp file as if
they were php file,or, better, if I could use php files but with extension
..asp. The problem is that I have rewritten my old site from asp to php,
but a lot of people is still searching for the old files. I would like to
translate in php all the files in asp language, having still .asp
extension, but then they have to be interpreted as php files. It is a
little workaround, I believe. I don't know if I have been clear in my
explaination.
Franc
--
Teaching OnLine
Corsi online di programmazione
Php, Asp, C, C++, Visual Basic, Delphi
Linux Shell Programming
------------------------------------
http://www.teachingonline.it
| |
| Davide Bianchi 2005-08-18, 2:50 am |
| On 2005-08-18, Lampa Dario <lamp@dario.it> wrote:
> I would like to know if I could set Apache to handle asp file as if
> they were php file,or, better, if I could use php files but with extension
> .asp.
Just change the AddType directives adding whichever extensions you want.
> but a lot of people is still searching for the old files.
The it would be better to use a rewrite rule to 'convert' to the new
extension.
Davide
--
Sometimes, when a luser makes an unreasonable demand, the best thing
to do is let them have exactly what they ask for.
-- Joe Zeff
| |
| Lampa Dario 2005-08-18, 8:50 pm |
|
> The it would be better to use a rewrite rule to 'convert' to the new
> extension.
Well, I have read the documentation, but something isn't clear to me.
Could you write some line of example?
Thank you very much
Francesco
--
Teaching OnLine
Corsi online di programmazione
Php, Asp, C, C++, Visual Basic, Delphi
Linux Shell Programming
------------------------------------
http://www.teachingonline.it
|
|
|
|
|