I'm using mod rewrite to re-route requests to a certain page e.g. www.mydomain.com/en/test.html to /index.php?lang=en&uri=test
This is working fine.
Here's the rewrite rule:
RewriteRule ^([^/\.]+)/([^/\.]+)/?.html$ /index.php?lang=$1&uri=$2 [L]
However, in some cases I might have a hash in the URL and no trailing ".html" e.g. www.mydomain.com/#/en/test/ because I'm using swfaddress for Flash. How could I rewrite this regular expression to take into account the cases in which I have a hash in the URL and no ".html"?
Thanks in advance!