I’m trying to do something like this http://myweb.com//page
If first parameter is not present it process only the second parameter.
the first is language and its stored in the session but , it can be changed throe ?lang=en..
I was trying something like this but it’s not working
RewriteRule ^([a-zA-Z_]+)?/([a-zA-Z0-9_-]+)$ index.php?lang=$1&page=$2
Try making them 2 separate rules, because the leading slash is removed.