I have installed 3rd party script in friends folder with index.html file and few other files. Now when I do www.example.com/friends I gets a 404 error as well as for example.com/friends/index.html

The file index.html is there but it seems drupal is creating some problem. I search and found this unanswered question only http://drupal.org/node/80772 with same problem.

What is causing this ? as my other folders with external drupal pages are working fine

Comments

.carey’s picture

I think this may be what you are looking for: http://drupal.org/node/117849

Pushkar Gaikwad’s picture

No it is not working !!!

I am sure that the problem is same but even after editing the .htaccess and adding index.html like this -

# Set the default handler.
DirectoryIndex index.php index.html

it is still not working. WHat else can I do ?

Boat Dealers

.carey’s picture

Are they index.htm pages? If so, add index.htm.

Otherwise, I don't know what it could be.

Pushkar Gaikwad’s picture

They are index.html pages :)

Any other suggestions...

Boat Dealers

.carey’s picture

See if this helps: http://drupal.org/node/30334

Pushkar Gaikwad’s picture

Unbelievable, it is still not working.

Surprisingly, any .php file is working in that folder but not .html file ? I mean if I keep index.php file, the external file gets opened, but if it is index.html, I get 404 error.

Boat Dealers | Looser Who

.carey’s picture

Is your Drupal setup using clean urls?

.carey’s picture

Finding this forum post (http://drupal.org/node/64708) makes me wonder if you have an .htaccess file in your subdirectory requiring basic authentication (?). See jt6919's comment: http://drupal.org/node/64708#comment-122229

Pushkar Gaikwad’s picture

Yes, I am using clean url's

The amazing thing is that only .html are creating problem. I mean if I have external folder with .php file, I am able to open it but if it .html extension like index.html, I get drupal 404 error

Boat Dealers | Looser Who

suit4’s picture

Which 3rd Party software did you install?
Is there a setup or installation procedure for that software?

Is it possible, that the index.html file you are trying to open loads or redirects to another page?
Then, it is maybe not the index.html causing the error, but the page to be loaded from that file.
It would be of interest to know, which page was not found.

Try to comment out these lines in .htaccess:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

This should give you the missing filename in the browsers' url field.

Pushkar Gaikwad’s picture

Guys, thanks alot for all the help. I had to hire a freelancer to fix it as I had already spent lot's of time on it. Amazingly he fixed it in 30 minutes. He also sent me what he did, which I am trying to understand, In first eye, it looks there was some problem with .htacces as well as my server settings. will post more info later after understanding what exactly he did. For now, everything is great. :-)

Boat Dealers | Looser Who

.carey’s picture

:)