|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
.htaccess (internal problem 500)
Hi,
I am installing a Product catagol inside the file of catalog there is a .htaccess file when I update a file and upload that im the server that apears a problem... 500 Internal Server Error htaccess.. file -------------------------------------------- php_value include_path ".;C:/Webroot/plaincart/;C:/Webroot/plaincart/library/;C:/Webroot/plaincart/include/ --------------------------------------------- can somebody help me?? thnx for undestanding!! enjoy life gllanci* |
|
#2
|
|||
|
|||
|
RE: .htaccess (internal problem 500)
Hi,
To be OK, you should do: AllowOverride All in your <Document. Should read below .. When (not) to use .htaccess files In general, you should never use .htaccess files unless you don't have access to the main server configuration file. There is, for example, a prevailing misconception that user authentication should always be done in .htaccess files. This is simply not the case. You can put user authentication configurations in the main server configuration, and this is, in fact, the preferred way to do things. .htaccess files should be used in a case where the content providers need to make configuration changes to the server on a per-directory basis, but do not have root access on the server system. In the event that the server administrator is not willing to make frequent configuration changes, it might be desirable to permit individual users to make these changes in .htaccess files for themselves. This is particularly true, for example, in cases where ISPs are hosting multiple user sites on a single machine, and want their users to be able to alter their configuration. However, in general, use of .htaccess files should be avoided when possible. Any configuration that you would consider putting in a .htaccess file, can just as effectively be made in a <Directory> section in your main server configuration file. There are two main reasons to avoid the use of .htaccess files. The first of these is performance. When AllowOverride is set to allow the use of .htaccess files, Apache will look in every directory for .htaccess files. Thus, permitting .htaccess files causes a performance hit, whether or not you actually even use them! Also, the .htaccess file is loaded every time a document is requested. Further note that Apache must look for .htaccess files in all higher-level directories, in order to have a full complement of directives that it must apply. (See section on how directives are applied.) Thus, if a file is requested out of a directory /www/htdocs/example, Apache must look for the following files: /.htaccess /www/.htaccess /www/htdocs/.htaccess /www/htdocs/example/.htaccess And so, for each file access out of that directory, there are 4 additional file-system accesses, even if none of those files are present. (Note that this would only be the case if .htaccess files were enabled for /, which is not usually the case.) The second consideration is one of security. You are permitting users to modify server configuration, which may result in changes over which you have no control. Carefully consider whether you want to give your users this privilege. Note that it is completely equivalent to put a .htaccess file in a directory /www/htdocs/example containing a directive, and to put that same directive in a Directory section <Directory /www/htdocs/example> in your main server configuration: .htaccess file in /www/htdocs/example: AddType text/example .exm httpd.conf <Directory /www/htdocs/example> AddType text/example .exm </Directory> However, putting this configuration in your server configuration file will result in less of a performance hit, as the configuration is loaded once when Apache starts, rather than every time a file is requested. The use of .htaccess files can be disabled completely by setting the AllowOverride directive to "none" AllowOverride None Quote:
|
|
#3
|
|||
|
|||
|
RE: .htaccess (internal problem 500)
The problem seems to be with one line in this SQL query:
$sql = "SELECT user_id FROM tbl_user WHERE user_name = '$userName' AND user_password = PASSWORD('$password')"; The login process works fine if you change the last line to just: user_password = '$password'"; For an explanation why, check http://archives.postgresql.org/pgsql-php/2003-01/msg00030.php |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Client Side Things > .htaccess (internal problem 500) |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|