473,416 Members | 1,719 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,416 software developers and data experts.

htaccess must be empty

Ivo
Greetings newsgroup,
I am moving some php scripts to a new host. While getting to know the
server, I ran into a strange problem.

If I add a .htaccess file, or more specifically: a .htaccess with
content, to a folder, requesting (html and php) files from that folder
results in internal server error messages.
If I upload an empty .htaccess file, all is fine. Then phpinfo() tells
me I am using Apache/1.3.27.

Where do I look to see what is wrong, and what can I do about it?
Many thanks, Ivo.
Jul 17 '05 #1
4 2960
"Ivo" wrote
If I add a .htaccess file, or more specifically: a .htaccess with
content, to a folder, requesting (html and php) files from that folder
results in internal server error messages.


So the server admin has probably not given you the right to override the
option that you want to set in .htaccess. If you manage to get into the
error log you'll certainly see an explaination there about which line is
rejected. Any rejection yields a 500 Internal Server Error.

Adriaan.
Jul 17 '05 #2
"Adriaan" <re*@de.solidareit> wrote in news:409e367e$0$139
$e*******@dreader17.news.xs4all.nl:
So the server admin has probably not given you the right to override the
option that you want to set in .htaccess. If you manage to get into the
error log you'll certainly see an explaination there about which line is
rejected. Any rejection yields a 500 Internal Server Error.


If the htaccess option is not available, it should simply be ignored.

I found this on an ISP page, maybe this is it.

When you create an .htaccess file, make sure that your text editor has word
wrap disabled. If you don't, your text editor might add characters to the
file that will cause problems with the Web server which will result in a
non-functional .htaccess file and a 500 server error on your website's home
page. Also make sure that all of your commands in an .htaccess file are on
a separate line. If you don't you will end up with an .htaccess file that
will cause problems on your account.
Jul 17 '05 #3
"Theo" wrote
Any rejection yields a 500 Internal Server Error.


If the htaccess option is not available, it should simply be ignored.


Not on my Apache installation. Like if in .htaccess I say

Options FollowSymlinks

when not allowing that from httpd.conf, then I run into a 500 Internal
Server Error.

Adriaan
Jul 17 '05 #4
"Adriaan" <re*@de.solidareit> wrote in news:409e80d8$0$96628
$e*******@dreader10.news.xs4all.nl:
Not on my Apache installation. Like if in .htaccess I say

Options FollowSymlinks

when not allowing that from httpd.conf, then I run into a 500 Internal
Server Error.


could be... im not an expert.

but when I first tried to use htaccess, and it didnt work, I learned that I
had to add the directory to the config file, otherwise it was ignored by
default... as the config file says in the comments. But who knows :o)
Jul 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: yawnmoth | last post by:
i'm trying to write a php script that will password protect some random directory by creating a .htaccess file, and a password file to accompany the .htaccess file, and it isn't working... ...
8
by: Joshua Beall | last post by:
Hi All, How do I disable magic quotes via .htaccess? I put the following file in my webroot, but it does not disable magic_quotes_gpc (according to phpinfo(), both the local and master value...
7
by: John | last post by:
Hello. I want to get this blasted .htaccess file sorted out, so I can have sessions without register_globals being on. I have looked everywhere for info on this and I mean everywhere...
0
by: Stoco | last post by:
I am trying to create a generic interface that will manage various ..htaccess protected directories. In the ideal world, the .htaccess would trigger a cgi script that would take login information...
4
by: Bill | last post by:
Does ASP have a file whose function is similar to .htaccess on Apache? I'm looking to protect subdirectory content.
0
by: Jack Hambabo | last post by:
Hi, I'm searching for a php script that can find out whether the current user (I know _SERVER will give me the name for non-cgi php) has the right to view a specific file. My dream is that I...
4
by: Stefan Bellon | last post by:
Hi all! I want to parse the contents of an .htaccess file from within PHP. The contents of the .htaccess file looks like this: <Files foobar.tar.gz> AuthType Basic AuthUserFile /foobar...
1
by: nickyeng | last post by:
I have checked this info from apache website, and i confused with it. Procteing System files it said: To run a really tight ship, you'll want to stop users from setting up .htaccess files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.