PDA

View Full Version : 403 forbidden still happening... :(


robvelton
4-17-05, 02:17 PM
OKay I am banging my head against the wall for the hoops I have to jump through in order to allow downloading of excel files from my site.

I have a directory called "extras" .

In that dir I have the excel file I want to download and an htaccess file.

The htaccess file contains the following:

AddType application/ms-excel .xls

And that is it. I have also tried the following AddType as well:

AddType application/x-octet-stream .xls

Am I doing something wrong or do I have to put the htaccess file somewhere else?

Thanks for the help in advance.

Rob

takashi_maze
4-17-05, 02:23 PM
I didn't know you could do that with HTACCESS <.< Regardless, there is a forum you should post this kind of thing in already :) You may find your answer there also
http://forum.powweb.com/forumdisplay.php?f=52

IanS
4-17-05, 02:25 PM
OKay I am banging my head against the wall for the hoops I have to jump through in order to allow downloading of excel files from my site.

I have a directory called "extras" .

In that dir I have the excel file I want to download and an htaccess file.

The htaccess file contains the following:

AddType application/ms-excel .xls

And that is it. I have also tried the following AddType as well:

AddType application/x-octet-stream .xls

Am I doing something wrong or do I have to put the htaccess file somewhere else?

Thanks for the help in advance.

RobI've just run a test. I uploaded an excel .xls file and was able to download it without difficulty. I have no reference to .xls in my .htaccess or any other Type/application - check other .htaccess files you may have elsewhere on your site for a conflict.

robvelton
4-17-05, 02:31 PM
is it true that AddType is not supported and I would have to use AddHandler?

If so does someone have a AddHandler example for excel?

Rob

robvelton
4-17-05, 02:34 PM
I've just run a test. I uploaded an excel .xls file and was able to download it without difficulty. I have no reference to .xls in my .htaccess or any other Type/application - check other .htaccess files you may have elsewhere on your site for a conflict.

http://rbcomponents.socalwebaccess.com/images/extras/1113594247_RBComponents_Blems.xls

that is my url for the xls file I have 2 htaccess files in the whole site. 1 in the extras dir and 1 in my phplive dir which doesn't contain any AddType information.

Guess I am not as lucky as you are. :(

Rob

IanS
4-17-05, 02:36 PM
is it true that AddType is not supported and I would have to use AddHandler?

If so does someone have a AddHandler example for excel?

RobHave you tried B&T's script here (http://tips.prettyworthless.com/?tip=link_list#tip)? It appears to do what you want, all you'd do is add the .xls type.