OpenCraft
Follow OC!
  • Home
  • About
  • Solutions
  • Portfolio
  • Clients
  • Blog
  • Contact

Apache MultiViews automatically appends file extensions

Thu, 2008-05-22 19:25
Tags:
  • apache
  • coding
  • drupal
By: 
Abdel-Karim Mardini

We were having a problem with a redirection issue in one of our projects. We had a page that had the url(i.e. path alias in Drupal) as /index. Whenever that page was called, Apache would append to it .php extension and the request gets routed to index.php which is NOT the desired effect.

This was due to the option "MultiViews" being enabled on our new Debian installation. For more info, read this.

I added this line to our .htaccess.

# MultiViews is evil. It automatically adds .php to /index. 
Options -MultiViews

This should be added to all our .htaccess in general in case we go to deploy to a host that has the option enabled.

  • amardini's blog

Our work

Parks Egypt

The Egyptian Ministry of State...

Grameen Foundation

The Grameen Foundation launched the open source loan-tracking...

View our complete portfolio

Related posts

  • Enabling clean URLs for Drupal on a clean Ubuntu
  • Beware PHP $_REQUEST!
  • Run webinject (nagios plugin) for drupal projects
  • Coloring 1pixelout flash player in audio module
  • How to associate default users with projects in 'Case Tracker' module?

More posts by this author

  • OpenCraft is no longer open
  • Diwan launches its website and online bookstore
  • Hello, World, wide web! (Take 3)
  • OpenCraft migrates AUC Mail to Google Apps
  • Al Jazeera Creative Commons Repository

OpenCraft

  • About
  • Team
  • Process
  • Community
  • Media Kit
  • Portfolio
  • Clients
  • Industries
    • Social economic development
    • Multimedia culture
  • Services
    • Drupal development
    • Information architecture
    • Open source software development
    • Social network engineering
  • Request quote
  • Contact
  • Search
Blog

Our profiles at:

Drupal Google
rss

Creative Commons License
search