PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : htaccess+mod_rewrite=graue Haare



spaci76
07.04.05, 11:09
hallo zusammen,

ich habe in der .htaccess folgendes drin:


# $Id: .htaccess,v 1.3 2003/06/12 10:53:20 hpdl Exp $
#
# This is used with Apache WebServers
#
# For this to work, you must include the parameter 'Options' to
# the AllowOverride configuration
#
# Example:
#
# <Directory "/usr/local/apache/htdocs">
# AllowOverride Options
# </Directory>
#
# 'All' with also work. (This configuration is in the
# apache/conf/httpd.conf file)

# The following makes adjustments to the SSL protocol for Internet
# Explorer browsers


<IfModule mod_setenvif.c>
<IfDefine SSL>
SetEnvIf User-Agent ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
</IfDefine>
</IfModule>



# Fix certain PHP values
# (commented out by default to prevent errors occuring on certain
# servers)

#<IfModule mod_php4.c>
# php_value session.use_trans_sid 0
# php_value register_globals 1
#</IfModule>


Options +FollowSymLinks
RewriteEngine On
# Change "folder" to your catalog directory name
RewriteBase /catalog/
RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-c-(.*).html$ index.php?cPath=$2&%{QUERY_STRING}
RewriteRule ^(.*)-m-(.*).html$ index.php?manufacturers_id=$2&%{QUERY_STRING}

also in der info.php (http://www.tonersector.de/info.php) steht im bereich apache, loaded modules das mod_rewrite, aber trotzdem wird die htaccess-regel nicht akzeptiert.

sprich sobald ich diese aktiviere kommt nur noch internal error 500

nehme ich die rewrite regel wieder raus funktioniert es wieder.

ich weis das dieses thema mehr als einmal durch genommen worden ist, ich bitte dennoch um einsicht, da ich nicht mehr ohne eure hilfe weiter komme.

vielen dank

spaci76

Tomek
07.04.05, 11:12
Eine .htaccess-Datei mit Optionen ist vermutlich dort nicht erlaubt. Du musst die Option AllowOverrride in der Apache-Konfiguration für das Verzeichnis anpassen. Was das ist und wie das funktioniert, erfährst du hier:

http://httpd.apache.org/docs-2.0/mod/core.html#allowoverride