PDA

View Full Version : routing http-page requests to a fixed script


haroldb
10-12-2002, 07:52 PM
Hi all

I'm running an Apache web server set up with multiple virtual hosts. Does any of you know whether it's possile to set up apache and/or php to make all page-requests for a host go to/through a fixed script?

So the http-request for, say, www.mydomain.com/anyfile.html should invoke a fixed script for that domain, and "anyfile.html" could be any file without any php code in it.

Question is whether this is possible without having to modify each separate file and of course how to achieve that :-)

I've looked on the internet, but don't know the right phrases to look for and found nothing matching my requirements.

hope this makes sense :-)

thanx in advance
harold

Dylan Leblanc
10-12-2002, 08:28 PM
I think .htaccess files can be used to do this. I am not sure on how to do it though.