Hello,
We're experimenting with Drupal CMS. In our old system, we have certain directories

e.g., www.dancescape.com/dvd

When we try to create the subdirectory for drupal and FTP files from our old system to this new directory, Drupal gives an error message that can't find file. It seems to override so that can't access the index.html in the /dvd folder

Is there a way that we can create folders, and override drupal for these subdirectories so that our previous html files show, rather than drupal indicating can't find file and subdirectory?

Thank you!

Comments

seanhe’s picture

Using a powerful content management system like to Drupal to manage static html pages does not make much sense. However, you can achieve similar results using taxonomy and/or url aliases. What this means is that you enter the content into a Drupal page or story content type and choose the url alias to be "dvd". This content can now be viewed by by entering the full url as above.

Spend some time on Google checking out some of the great introductions and tutorials available on Drupal. This is what I had to do at first. After a few weeks I have built quite a few sites, using some very advanced features.

Hope this helps a bit...

cluedin’s picture

I appreciate the recommendations to "enter the content into a Drupal page or story content type and choose the url alias..." [and I hope to find more detailed instructions], but I don't understand your initial comment.

If I've spent years developing a project with automated html output, and the output is needed on a site based on Drupal, it makes sense to simply add it to the Drupal site, no? My alternatives: ask them to not use Drupal?, or somehow make my project Drupal-dependent because of this one place the output is used?

cmsproducer’s picture

I suspect that you either have an entry in your .htaccess file that isblocking access to the other folders, and directing all path resolution to Drupal to handle, or you have not set the $base_url = setting in the settings.php file, that cn lead to Drupal attempting to andle requests to the root folder (especially if the .htaccess) has directed all requests to it.

Please provide more infomation

-----
iDonny Productions: Accessibility & Web Standards-based Design & Devt., CMS & Web Branding

drupalnesia’s picture

Is there a way that we can create folders, and override drupal for these subdirectories so that our previous html files show, rather than drupal indicating can't find file and subdirectory?

Yes, by modifying .htaccess. But I suggest u use special Drupal folder: files/. Try to upload a file using Drupal upload feature and u will see how it will work.
Note: if you use .htaccess method then for security reason you better create a new folder on your Drupal root folder (same like files/ folder), then put all your .html files and .htaccess there. Look at Drupal files/ folder for example.

FreeFox’s picture

Because I have a similar problem I saw this post. Hope I can get an answer to my problem. It can't be that hard but I really don't know how.

I use a statistics application (like webalizer). I let it write the results to a directory in the site directory of that domain:

/sites/thedomain.com
/sites/thedomain.com/files
/sites/thedomain.com/stats <=
/sites/thedomain.com/tmp

There is an index.htm file in there too. Now I want to be able to surf to http://thedomain.com/stats/index.htm and see that page but instead I get a Drupal page (of my site) saying "Page not found".

What do I have to change where?

Thanks in advance
Jan

gonefishing’s picture

Make a .htaccess file using note pad and put:

Options +Indexes
DirectoryIndex index.html index.htm

Upload the file to the directory you want to exclude Drupal from.

middlemountain’s picture

Continuing with this thread, is there a way to create a directory of static html pages within Drupal that still require Drupal's authentication (i.e. login/password) to be viewed but aren't actually created from within Drupal?

idflorin’s picture

Options +Indexes
DirectoryIndex index.html index.htm index.php

This a little more complete to use
--------------------
Style Snatch

Justin_KleinKeane’s picture

Hello,

you're on the right track, but Drupal cryptically puts that directory at the URL http://thedomain.com/sites/thedomain.com/stats/index.htm rather than at the URL http://thedomain.com/stats/index.htm. Hope this helps.

-Justin

webel’s picture

Visit How to Access Non-Drupal Folders on Your Drupal Website
by Christopher Heng
, which explains how to work with separate password-protected folders with any desired non-Drupal content on most shared web hosting servers.

Webel IT Australia, "Elements of the Web", Scientific IT Consultancy,
For PHP-driven Drupal CMS web sites, Enterprise Java, graphical UML, UML Parsing Analysis, SysML, XML.

jakubmrozonline’s picture

Just create a new folder in [docroot] and place all your files (including index.html or index.php) file there.
With D8 it works on mine even without .htaccess inside the custom directory.

Hope that helps :)