PDA

View Full Version : [ubuntu] Quick apache2 question...


paul.maddox
July 22nd, 2009, 08:22 AM
Hi all,

I've noticed that with Apache2 Debian/Ubuntu, it will automatically add .php extensions to the URLs:

So if I have:

http://localhost/login.php

I can go to:

http://localhost/login

and it will still work - which is nice.


How can I replicate this behavior on another distro? Is it a mod_rewrite trick?

paul.maddox
July 22nd, 2009, 08:40 AM
Sorry, answered my own question here!

If anybody is ever interested... You just need to turn on the MultiViews directory option

http://httpd.apache.org/docs/2.0/content-negotiation.html

ulidtko
July 22nd, 2009, 08:55 AM
You just need to turn on the MultiViews directory option

http://httpd.apache.org/docs/2.0/content-negotiation.html

You did the search a bit faster :D