Help mod_rewrite to Zeus
Posted
by FFish
on Stack Overflow
See other posts from Stack Overflow
or by FFish
Published on 2010-05-30T22:48:07Z
Indexed on
2010/05/30
22:52 UTC
Read the original article
Hit count: 204
I just found out my host is on ZEUS.. Please can somebody help me with my rewrites:
domain.com/001234
redirects to
domain.com/001234-some-keywords.html
Apache:
RewriteRule ^([0-9]{6}+)/?$ includes/redirect.php?ref=$1 [L]
RewriteRule ^([0-9]{6})-.*?\.html$ templates/default/index.php?ref=$1 [L]
tried this in Zeus:
match URL into $ with ^([0-9]{6}+)/?$
if matched then
set URL = includes/redirect.php?ref=$1
endif
match URL into $ with ^id/([0-9]+)/?$
if matched then
set URL = home/content.php?id=$1
endif
© Stack Overflow or respective owner