I inherited a site that has a lot of manually created html/php files in subfolders outside of Drupal. In other words, not as nodes, but static html/php fiels (leading of from the site root). I would like to move many of them inside Drupal as nodes because they are just some basic html/php. However, when I create a node using the same alias, it continues to load the old static html/php page. (I have flushed cache, both local and in drupal). Thoughts?


You'll need to remove the original file, or make it unreadable by your webserver. Drupal is basically a big 404-handler; if the file exists it will get loaded before the webserver looks for the default index.php which then bootstraps Drupal.

That, or check to make sure you don't have APC or similar opcode cache installed.

  • I have removed the static file, but now I am receiving "Forbidden. You don't have permission to access /calculators/ on this server." (Calculators being the folder name) – Nigel Waters Feb 9 '12 at 20:09
  • Have you checked the folder permissions? – Chapabu Apr 10 '12 at 8:47

Have you checked for redirects in your .htaccess file? It's a possibility they are being redirected before Drupal even starts bootstrapping.

Try moving this file away form your webroot (back it up first, just in case) and then get a fresh .htaccess file from whichever Drupal 6 version you are running.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.