. .
pragmaMx Support Forum 23 November 2008, 12:40:55 *
Willkommen Gast. Bitte einloggen oder registrieren.


Einloggen mit Benutzername und Passwort
News:
Brauchen Sie Hilfe? Bitte nutzen Sie unsere Suchfunktion bevor Sie Beiträge oder Fragen ins Board schreiben! Viele Fragen wurden bereits gestellt und beantwortet. Danke!
 
Übersicht Hilfe Forenregeln / Boardrules
 
Suche
Seiten: [1]   Nach unten
Drucken
Autor Thema: mod_rewrite  (Gelesen 1791 mal)
0 Mitglieder und 1 Gast betrachten dieses Thema.
DeepThought
weiss was
***
Offline Offline

Beiträge: 104


WWW
« am: 06 Juni 2006, 13:35:24 »

Moin ,

mein Problem in Anlehnung an die Frage von Musicman75 (>hier<):
- Bei Auswahl eines Forum kommt "Modul nicht vorhanden"
- Bei Auswahl der Adminfunktion lande ich in der Forenübersicht

.htaccess sieht wie folgt aus:
Code: [Select]  
<Files .htaccess>
order allow,deny
deny from all
</Files>

<Limit GET>
order allow,deny
allow from all
deny from 136.
deny from 168.143.
deny from 216.127.
deny from 63.208.
deny from 63.209.
deny from 63.210.
deny from 63.211.
deny from 63.212.
deny from 63.213.
deny from 63.214.
deny from 63.215.
deny from 82.96.
</Limit>

ErrorDocument 402 http://www.vatersein.de
ErrorDocument 403 http://www.vatersein.de/403Document.html
ErrorDocument 404 http://www.vatersein.de

# 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]

Irgendeien Idee?

Gruß

DeepThought
Gespeichert
DeepThought
weiss was
***
Offline Offline

Beiträge: 104


WWW
« Antworten #1 am: 06 Juni 2006, 14:40:48 »

Ich Rindvieh  mad - da hab'ich doch die Kommentierung für die smf-Anweisungen nicht rausgenommen.

Naja, ein Fehler, den andere so n un vermeiden können.

Gruß

DeepThought
Gespeichert
Andi
Administrator
******
Offline Offline

Geschlecht: Männlich
Beiträge: 15.852



WWW
« Antworten #2 am: 06 Juni 2006, 14:44:59 »

Hi Smiley

wollte es gerade schreiben...

Code: [Select]  
# 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]

hier überall die # davor wegmachen Smiley
Gespeichert

schön´s Grüssle, Andi
Kein Support über PN, Mail oder ICQ!
Bitte die Fragen im Forum stellen, nur so helfen die Antworten auch den anderen Usern.
Bitte auch die Boardsuche nicht vergessen, oft ist genau dein Problem schon an anderer Stelle gelöst worden!


Auch aus Steinen, die einem in den Weg gelegt werden, kann man Schönes bauen.
Johann Wolfgang von Goethe
Seiten: [1]   Nach oben
Drucken
 
Gehe zu:  

Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
design by hENNE, layout based on YAML