hallo,
nachdem meine beiden festplatten defekt waren bei server4you musste alles neu installiert werden
vorher lief mod_rewrite
nun ist in der httpd.conf mod_rewrite eingetragen und aktiviert von hoster aber ich bekomme nur fehlermeldungen
habe das meiste hier aus dem forum durchprobiert und bekomme meist 500 fehler
httpd.conf:
<Directory />
Options None
AllowOverride None
Order deny,allow
Deny from all
</Directory>
<Directory "/srv/www/htdocs" >
Options +FollowSymLinks
AllowOverride All
</Directory>
# use .htaccess files for overriding,
AccessFileName .htaccess
# and never show them
<Files ~ "^\.ht">
Order allow,deny
Deny from all
</Files>
.htaccess:
# pragmaMx Content Management System
# Copyright (c) 2005 pragmaMx Dev Team - http://pragmaMx.org
# $Source: /home/cvs/pragmamx/stable/mod_rewrite.htaccess,v $
# $Revision: 1.6 $
# $Author: tora60 $
# $Date: 2005/12/02 21:36:15 $
# rename this file to .htaccess, and you will get nice and clean urls.
# Depends on your configuration, you must set RewrteBase to
# switch on Mod_rewrite. See for this the online docs:
# http://httpd.apache.org/docs/mod/mod_rewrite.html
# falls nicht funktioniert, dann die nächste Zeile wieder auskommentieren!
# (Am Anfang der nächsten Zeile ein "#" einfügen... )
Options +FollowSymLinks
# Rewrite Engine aktivieren
RewriteEngine on
# evtl. bei Bedarf Rewrite Basisordner definieren
# falls nicht funktioniert, dann die nächste Zeile wieder einkommentieren, vorher allerdings den Pfad anpassen!!!
# RewriteBase /www
# individuelle Rewrite-Regeln:
RewriteRule ^home\.htm(l?) index.php [L]
# Your_Account Modul:
RewriteRule ^register-me\.htm(l?) modules.php?name=User_Registration [L]
RewriteRule (^myaccount|^log-me-in)\.htm(l?) modules.php?name=Your_Account [L]
RewriteRule ^log-me-out\.htm(l?) modules.php?name=Your_Account&op=logout [L]
RewriteRule ^mydata\.htm(l?) modules.php?name=Your_Account&op=edituser [L]
RewriteRule ^mysettings\.htm(l?) modules.php?name=Your_Account&op=edithome [L]
# eBoard:
#RewriteRule ^forum-([0-9]*)\.html modules.php?name=eBoard&file=forumdisplay&fid=$1 [L]
#RewriteRule ^forum-thread-([0-9]*)\.html modules.php?name=eBoard&file=viewthread&tid=$1 [L]
#RewriteRule ^forum-thread-([0-9]*)-([0-9]*)-([A-Z]*).html modules.php?name=eBoard&file=viewthread&tid=$1&page=$2&orderdate=$3 [L]
#RewriteRule ^forum-today\.html modules.php?name=eBoard&file=messotd [L]
#RewriteRule ^forum-news\.html modules.php?name=eBoard&file=messslv [L]
#RewriteRule ^forum-search\.html modules.php?name=eBoard&file=search [L]
#RewriteRule ^forum-stats\.html modules.php?name=eBoard&file=stats [L]
#RewriteRule ^forum-faq\.html modules.php?name=eBoard&file=misc&action=faq [L]
#RewriteRule ^forumcat-([0-9]*)\.html modules.php?name=eBoard&gid=$1 [L]
#RewriteRule ^(forum|eBoard)\.html modules.php?name=eBoard [L]
# SMF Try No. 1
#RewriteRule ^forum\.html modules.php?name=Forum [L]
#RewriteRule ^forumcat-([0-9.]*)\.html modules.php?name=Forum&board=$1 [L]
#RewriteRule ^forum-action-do_([a-zA_Z]+)\.html modules.php?name=Forum&action=$1 [L]
#RewriteRule ^forum-profil-([0-9]*)\.html modules.php?name=Forum&action=profile;u=$1 [L]
#RewriteRule ^forum-replies\.html modules.php?name=Forum&action=unreadreplies [L]
#RewriteRule ^forum-markallasread\.html modules.php?name=Forum&action=markasread;sa=all [L]
#RewriteRule ^forum-pm-([0-9]*)\.html modules.php?name=Forum&action=pm;sa=send;u=$1 [L]
#RewriteRule ^forum-topic-([0-9.]*)\.html modules.php?name=Forum&topic=$1 [L]
#RewriteRule ^forum-topic([0-9.]*)-(prev)\.html modules.php?name=Forum&topic=$1;prev_next=$2 [L]
#RewriteRule ^forum-topic([0-9.]*)-(next)\.html modules.php?name=Forum&topic=$1;prev_next=$2 [L]
#RewriteRule ^forum-profile-([0-9]*)-do_([a-zA-Z]+)\.html modules.php?name=Forum&action=profile;u=$1;sa=$2 [L]
# Coppermine 1.4.x:
#RewriteRule Gallery-([0-9]*)\.html modules.php?name=Gallery&cat=$1 [NC]
#RewriteRule Gallery-thumbs-([a-z0-9]*)-([0-9]*)\.html modules.php?name=Gallery&act=thumbnails&album=$1&cat=$2 [NC]
#RewriteRule Gallery-thumbs-([a-z0-9]*)-page-([0-9]*)\.html modules.php?name=Gallery&act=thumbnails&album=$1&page=$2 [NC]
#RewriteRule Gallery-thumbs-([a-z0-9]*)\.html modules.php?name=Gallery&act=thumbnails&album=$1 [NC]
#RewriteRule Gallery-image-([a-z0-9]+)-([0-9]+)-([\-]?[0-9]+)\.html modules.php?name=Gallery&act=displayimage&album=$1&cat=$2&pos=$3 [NC]
#RewriteRule Gallery-image-([a-z0-9]+)-([\-]?[0-9]+)\.html modules.php?name=Gallery&act=displayimage&album=$1&pos=$2 [NC]
#RewriteRule Gallery-image-([\-]?[[0-9]*)\.html modules.php?name=Gallery&act=displayimage&pos=$1 [NC]
# ##############################################################################
# URL's automatisch generieren fuer alles was ueber die modules.php laeuft
# die Variable $modrew_prepareauto muss in der includes/mx_modrewrite.php auf TRUE stehen!
# diese Regeln nicht verändern!!!
RewriteRule ^([^-]+)-([^/]+)\.html$ mod.php?$1&________________________$2 [L]
RewriteRule ^([^-/]+)\.html$ mod.php?$1 [L]
RewriteRule ^([^-/]+)\.html$ mod.php?$1 [L]
Hi,
Schau dir mal meinen Post dazu an: http://www.pragmamx.org/modules.php?name=Forum&topic=11818.msg88946#msg88946
Hab eh eingetragen wie der Code Früher aussah und jetzt aussieht.
Kontrolier das mal und amch vorher ein Backup von den 2 Dateien. "confixx_vhost.conf" "httpd.conf"
L.g