bumfilter
08-29-2005, 10:30 PM
Hello,
I'm trying to setup the following;
I want all requests to my website, e.g.
http://domain.com/contact
http://domain.com/contact/
http://domain.com/file.zip
etc, to be served by one file. I can do this fine using:
<Files index>
ForceType application/x-httpd-php
</Files>
which would allow:
http://domain.com/index/contact
http://domain.com/index/contact/
http://domain.com/index/file.zip
but I want it all to go through from the root.
<Files index>
ForceType application/x-httpd-php
</Files>
DirectoryIndex index
Allows:
http://domain.com/?contact
http://domain.com/?contact/
http://domain.com/?file.zip
but I'm trying to get rid of the ?'s.
It's very hard to Google for answers for this, hence my post! I'm using a script to decide what to serve based on the URL, rather than having many directories etc... So is it possible to force Apache to serve all requests through one script like this?
Thanks if you can help!
I'm trying to setup the following;
I want all requests to my website, e.g.
http://domain.com/contact
http://domain.com/contact/
http://domain.com/file.zip
etc, to be served by one file. I can do this fine using:
<Files index>
ForceType application/x-httpd-php
</Files>
which would allow:
http://domain.com/index/contact
http://domain.com/index/contact/
http://domain.com/index/file.zip
but I want it all to go through from the root.
<Files index>
ForceType application/x-httpd-php
</Files>
DirectoryIndex index
Allows:
http://domain.com/?contact
http://domain.com/?contact/
http://domain.com/?file.zip
but I'm trying to get rid of the ?'s.
It's very hard to Google for answers for this, hence my post! I'm using a script to decide what to serve based on the URL, rather than having many directories etc... So is it possible to force Apache to serve all requests through one script like this?
Thanks if you can help!
