Forum Moderators: phranque
RewriteCond %{QUERY_STRING} ^([^&]&)*page=([1-4])(&.*)?$
RewriteRule ^(pictures|fotos|index\.php)$ http://www.example.com/pictures?id=%2 [R=301,L]
# If requested language name/value pair value is "en"
RewriteCond %{QUERY_STRING} ^([^&]&)*language=en(&.*)?$ [OR]
# or if no language name/value pair is present in the request
RewriteCond %{QUERY_STRING} !^([^&]&)*language=[a-z]+(&.*)?$
# and if the page name/value pair is present and the value is 1 to 4 inclusive
RewriteCond %{QUERY_STRING} ^([^&]&)*page=([1-4])(&.*)?$
# Externally redirect requests for /pictures, /fotos, and /index.php to /pictures?id=<page-number>
RewriteRule ^(pictures|fotos|index\.php)$ http://www.example.com/pictures?id=%2 [R=301,L]