I need to have URLs such as mydomain.com/whatever
, where "whatever" can be any arbitrary string, all call the same php file where it sorts out what to display (or displays a 404). However, I want files and other php files to work normally (anything that is otherwise aliased, or that actually exists in the file system).
A simple AliasMatch /* myphpfile.php
(after all the other Aliases in httpd.conf) works fine on my own setup, but on a production server, the wildcard alias sends all the other php files to myphpfile.php
. I'm not sure what else might be confusing things.
Technically the whatever
string will be alphabetic and lower case, so it can filter for that, but all attempts I've made with regex's haven't been successful.