Apache - Htaccess optional parameter, Redirect optional rules

Htaccess optional parameter

Here the second parameter in the url is optional
RewriteCond %{REQUEST_URI} /faq/?(.*)
RewriteRule ^faq/?(.*) ./user/discussions/index.php?page=$1 [QSA,L] 

simple htaccess redirection
RewriteCond %{REQUEST_URI} /login/send-friend-request/(.*)
RewriteRule ^login/send-friend-request/(.*) ./user/friends/send_friend_request.php?tofriend=$1 [L]  

htaccess redirecting image urls to a php page
RewriteCond %{REQUEST_URI} /poem-small-thumb/(.*)\.jpg
RewriteRule ^poem-small-thumb/(.*)\.jpg ./frontpage/smallthumb.php?id=$1 [L] 

The topic on Apache - Htaccess optional parameter is posted by - Math

Hope you have enjoyed, Apache - Htaccess optional parameterThanks for your time

Tech Bluff