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=tes t
This is working fine.
Here's the rewrite rule:
RewriteRule ^([^/\.]+)/([^/\.]+)/?.htm l$ /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!
This is working fine.
Here's the rewrite rule:
RewriteRule ^([^/\.]+)/([^/\.]+)/?.htm
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER