Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # mod_rewrite
- RewriteEngine On
- # lets replace all the /var1/value1 found after the controller/action by &var1=$value1 query string
- # mod_rewrite is looping here if the rule matches
- RewriteRule ^/([^/]+)/([^/]+)/(?:(&[^/]+=[^/]+)/)*([^/]+)/([^/]+)(.*) /$1/$2$3&$4=$5$6 [QSA,NS,N]
- # lets replace the controller/action per the appropriate query string
- RewriteRule ^/([^/]+)?/?([^/]+)?([^/]*) %{ENV:Rewrite-Folder}/index.php?_controller=$1&_action=$2$3 [QSA,NS,L]
Add Comment
Please, Sign In to add comment