کد یک:


RewriteCond %{REQUEST_URI} !^images/
RewriteRule ^([a-zA-Z0-9\._\-]+)/([a-zA-Z0-9\._\-]+)$ index.php?controller=$1&action=$2 [NC,L]

RewriteCond %{REQUEST_URI} !^images/
RewriteRule ^([a-zA-Z0-9\._\-]+)/([a-zA-Z0-9\._\-]+)/([a-zA-Z0-9\._\-]+)$ index.php?controller=$1&action=$2&param1=$3 [NC,L]



کد دو:


RewriteCond %{REQUEST_URI} !^images/
RewriteRule ^([a-zA-Z0-9\._\-]+)/([a-zA-Z0-9\._\-]+)$ index.php?controller=$1&action=$2 [NC,L]
RewriteRule ^([a-zA-Z0-9\._\-]+)/([a-zA-Z0-9\._\-]+)/([a-zA-Z0-9\._\-]+)$ index.php?controller=$1&action=$2&param1=$3 [NC,L]