Accessing non-drupal folders within a drupal site
To my surprise, when setting up the OCL workshop web page I realized that the URL modeling-languages.com/events/OCLWorkshop2009/ was not automatically redirected to modeling-languages.com/events/OCLWorkshop2009/index.html . Instead, a forbidden access error was shown.
My suspicion was that Drupal was somehow interfering in the process since the base URL (modeling-languages.com) is managed by drupal (btw, for those interested in Drupal, I already described the process of creating this web site with Drupal ). Basically, the problem is that, by default, Drupal only looks for an index.php file in the folder. If no such file is found, the previous access error is shown.
Therefore, the solution is to modify the .htaccess file to make sure that .html files are also considered when NO INDEX.PHP FILE IS AVAILABLE.
Here I found a simple solution: adding the instruction “DirectoryIndex index.php index.html” to your .htaccess file.
Hope this info helps to save some time to all of you using Drupal in combination of normal html folders!
If you enjoyed the post you can subscribe to this Software Modeling blog and/or follow me on twitter . And if you really liked it help me pass it on to others by bookmarking and sharing the post using the links below: