Sample Page
The Rewrite Engine of http://mrws.envato.homac.at/SGM31/ is turned off and all (not found) friendly Urls are parsed by the modrewrite.class.phpA view lines of the .htaccess of http://mrws.envato.homac.at/SGM31/
Start
RewriteEngine off RewriteBase /SGM31/
ErrorDocument for including the mod.rewrite.class.php
ErrorDocument 404 /SGM31/error404.php
Activasion
RewriteRule ^act_([0-9a-z]{32})\.html register.php?action=activate&actcode=$1click, incorrect code, cause the account is already registered
Language
RewriteRule ^lang([a-z]{2})$ lang.php?use_lang=$1de | en
Images
RewriteRule ^_([0-9a-z\-_]+)\/tn([0-9]+)s([0-9]+)\.jpg tn.php?user=$1&id=$2&s=$3&%{QUERY_STRING}









...
...
modewrite.class.php in action on
SGM 3.1Currently supporting Ruleformats Examples
RewriteRule ^act_([0-9a-z]{32})\.html bla1.php?action=activate&actcode=$1 RewriteRule ^lang([a-z]{2})$ lang.php?use_lang=$1 RewriteRule ^Plang([a-z]{2})$ http://www.homac.at [R] RewriteRule ^_([0-9a-z\-_]+)\/tn([0-9]+)s([0-9]+)\.jpg bla2.php?user=$1&id=$2&s=$3&%{QUERY_STRING} RewriteRule ^_([0-9a-z\-_]+)\/tn([0-9]+)\.swf bla3.php?user=$1&id=$2&%{QUERY_STRING} RewriteRule ^_([0-9a-z\-_]+)\/tn([0-9]+)\.flv bla4.php?user=$1&id=$2&%{QUERY_STRING} RewriteRule ^_([0-9a-z\-_]+)\/flv([0-9]+)\.xml bla5/foo3.xml.php?user=$1&id=$2 RewriteRule ^_([0-9a-z\-_]+)\/playFLV([0-9]+)$ bla6/foo2.php?user=$1&id=$2&%{QUERY_STRING} RewriteRule ^_([0-9a-z\-_]+)\/playMP3([0-9]+)$ bla7/foo1.php?user=$1&id=$2&%{QUERY_STRING} RewriteRule ^_([0-9a-z\-_]+)\/tn([0-9]+)\.avi bla8.php?user=$1&id=$2&%{QUERY_STRING} RewriteRule ^_([0-9a-z\-_]+)\/playDivX([0-9]+)$ bla9/foo4.php?user=$1&id=$2&%{QUERY_STRING} RewriteRule ^_([0-9a-z\-_]+)\/tn([0-9]+)\.mov bla10.php?user=$1&id=$2&%{QUERY_STRING} RewriteRule ^_([0-9a-z\-_]+)\/tn([0-9]+)\.mp3 bla11.php?user=$1&id=$2&%{QUERY_STRING} RewriteRule ^tn([0-9]+)a([0-9]+)\.jpg bla12.php?user=InternalAdmin&id=$1&s=$2&%{QUERY_STRING} RewriteRule ^_([0-9a-z\-_]+)\/~([0-9]+)\/?$ bla13/foo5.php?user=$1&gal=$2 RewriteRule ^_([0-9a-z\-_]+)\/gf([0-9]+)\/?$ bla14/foo6.php?user=$1&gal=$2 RewriteRule ^_([0-9a-z\-_]+)\/~([0-9]+)f\/?$ bla15/fafasf.php?user=$1&gal=$2&framed=true RewriteRule ^_([0-9a-z\-_]+)\/vp([0-9]+)$ asdasd/asasd.php?user=$1&id=$2&%{QUERY_STRING} RewriteRule ^_([0-9a-z\-_]+)\/~([0-9]+)fg\/?$ vcasda/vphsyvp.php?user=$1&gal=$2 RewriteRule ^_([0-9a-z\-_]+)\/flashgallery([0-9]+)\.xml$ asd/asddda.xml.php?user=$1&gal=$2 RewriteRule ^_([0-9a-z\-_]+)\/cu3er([0-9]+)\.xml$ hjg/gghj.xml.php?user=$1&gal=$2 RewriteRule ^_([0-9a-z\-_]+)\/cooliris-([0-9]+).rss$ bla123/foo456.rss.php?user=$1&gal=$2