mod_rewrite

Begonnen von DeepThought, 06 Juni 2006, 13:35:24

⏪ vorheriges - nächstes ⏩

0 Mitglieder und 1 Gast betrachten dieses Thema.

DeepThought

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:
<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

DeepThought

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

Andi

Hi :)

wollte es gerade schreiben...

# 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 :)
schön´s Grüssle, Andi