Forum Moderators: phranque
Some other guy asked a similar question at the Zeus Mailing List, without a reply.
The desired rewrite rule is:
RewriteEngine on
Options +FollowSymLinks
RewriteRule ^t([0-9]+).html$ showthread.php?t=$1 [L]
RewriteRule ^lastpostinthread([0-9]+).html$ showthread.php?goto=lastpost&t=$1 [L]
RewriteRule ^newpostinthread([0-9]+).html$ showthread.php?goto=newpost&t=$1 [L]
RewriteRule ^f([0-9]+).html$ forumdisplay.php?f=$1 [L]
thx in advance for any help
eg.:
RULE_0_START:
match URL into $ with ^thread([0-9]+).html$
if matched set URL = showthread.php?t=$1
RULE_0_END:
or even
RULE_0_START:
match URL into $ with ^thread([0-9]+).html$
if not matched then goto RULE_0_END
if matched set URL = showthread.php?t=$1
goto END
RULE_0_END:
if not matched then goto RULE_2_END
I cant write my own rules, i need them for a vbulletin...
hope anyone has a clue to work this out *praying* ;)
The rewriting functionality in Zeus is a recent addition to their software, so it isn't available in older versions. Which precise version of Zeus is your hosting provider using? If it's still version 3.x, you're out of luck.
"doesn´t work" means "Page not found"
The Zeus Version is 4.3 , and the mod_rewrite converter provided by Zeus does not work neither.
Tried with a better rewrite rule but still doesn´t work.
Apache Rewrite Rule:
RewriteEngine On
Options +FollowSymLinks
RewriteRule ^t([0-9]+)-(.*).html$ showthread.php?t=$1 [L]
RewriteRule ^lastpostinthread([0-9]+).html$ showthread.php?goto=lastpost&t=$1 [L]
RewriteRule ^newpostinthread([0-9]+).html$ showthread.php?goto=newpost&t=$1 [L]
RewriteRule ^f([0-9]+)-(.*).html$ forumdisplay.php?forumid=$1 [L]
mod_rewrite converted by zeus:
RULE_0_START:
match URL into $ with ^t([0-9]+)-(.*).html$
if not matched then goto RULE_0_END
# Source line 3
# Second half of: RewriteRule ^t([0-9]+)-(.*).html$ showthread.php?t=$1 [L]
set URL = showthread.php?t=$1
# This rule has [L]
goto END
RULE_0_END:
RULE_1_START:
match URL into $ with ^lastpostinthread([0-9]+).html$
if not matched then goto RULE_1_END
# Source line 4
# Second half of: RewriteRule ^lastpostinthread([0-9]+).html$ showthread.php?goto=lastpost&t=$1 [L]
set URL = showthread.php?goto=lastpost&t=$1
# This rule has [L]
goto END
RULE_1_END:
RULE_2_START:
match URL into $ with ^newpostinthread([0-9]+).html$
if not matched then goto RULE_2_END
# Source line 5
# Second half of: RewriteRule ^newpostinthread([0-9]+).html$ showthread.php?goto=newpost&t=$1 [L]
set URL = showthread.php?goto=newpost&t=$1
# This rule has [L]
goto END
RULE_2_END:
RULE_3_START:
match URL into $ with ^f([0-9]+)-(.*).html$
if not matched then goto RULE_3_END
# Source line 6
# Second half of: RewriteRule ^f([0-9]+)-(.*).html$ forumdisplay.php?forumid=$1 [L]
set URL = forumdisplay.php?forumid=$1
# This rule has [L]
goto END
RULE_3_END: