MultiViews, PHP and Canonicalising URLs (13th February 2007)
Striving for technology-neutral URLs, I enabled
MultiViews in Apache. I eventually found that PHP’s
apache_lookup_uri will resolving
MultiViews URLs. This enabled my PHP scripts to adapt the navigation and do their other magic things again.
But I’ve now got two equally valid URLs for each resource, which isn’t cool. I want to make all incoming requests redirect to the technology-neutral form but can’t figure out how. I’ve asked for help...maybe a set of
RewriteRule directives can sort this out?
If I come across a way which works, I’ll write a little article about it. Web searches haven’t brought much up.