Link to home
Start Free TrialLog in
Avatar of AX_User
AX_User

asked on

Mod rewrite regular expression help needed!

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!
ASKER CERTIFIED SOLUTION
Avatar of caterham_www
caterham_www
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of AX_User
AX_User

ASKER

Thanks a million.