troubleshooting Question

Mod rewrite regular expression help needed!

Avatar of AX_User
AX_User asked on
Apache Web Server
2 Comments1 Solution212 ViewsLast Modified:
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
Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros