0

I have a D7 site and then a lot of other non-drupal stuff I would like to keep in my joe/ folder on our server as joe/thing1/ joe/thing2/ etc. Right now, my folder joe/ just has the drupal installation and my other stuff is not deployed. I would like to move drupal into a subdirectory, but still have http://website/joe/ work as my original drupal site with clean urls, etc. Then I would like to be able to deploy my other stuff into http://website/joe/thing1, http://website/joe/thing2 etc.

How can I build an .htaccess file to serve drupal from a subdirectory unless a url points to an existing file? Or is that the correct way to go about this?

1 Answer 1

0

If your non-drupal files are just a few and are static content (just plain HTML files or similar) you can create symbolic links in the root Drupal foolder that point to your non-drupal files.

Webserver (Apache at least) will serve those files if the URL points to them, instead of call index.php with the URL rewriten into params.

This way if you accidentally delete root Drupal directory (for example, using an automatic core update) you only have to put the simbolic links again, not all your non-drupal files.

1
  • I have quite a bit of old (mostly static html) material that I don't want in the drupal folder - that's why I need to move the clean drupal folder to joe/blog/ Commented Mar 29, 2014 at 19:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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