Htaccess unicode problem

jackbwa used Ask the Experts™

I have to pass a Unicode URL; this is an example from my htaccess file

RewriteRule ^categories/([0-9]+)/?/([0-9]+)-([0-9]+)/?/( [_A-Za-z0-9-]+).html/?$ index.php?action=browse&cat=$1&page=$2&limit=$3

When using the above code I get the link like this


And when I change the ( [_A-Za-z0-9-]+) with ([^/.]*).
I get the perfect URL which look

And the site works in all the browsers (Firefox, opera, chrome) except the internet explorer.
When I load the site in internet explorer it always crush and I get the message (This tab has been recovered) and the site dont load the pages.

I tried I replace the ( [_A-Za-z0-9-]+) with (.*) but the site didnt work at all.
Is there a solution to fix this?

Thanks in advance
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
> I have to pass a Unicode URL;
Could you please explain, best with an example, wha a "unicode URL" is for you.

In HTTP you only have URL which are URL-encoded, where the encoding allows unicode notations too (which is a special form of the URL encoding).


Sorry for my late respond

Actually I have a bizarre problem.

I have site that I am translating to many languages, now I am done translating the site to Arabic.
This also include that the URLs are also have Arabic characters.

And the site work fine in all browsers except the internet explorer.
In internet explorer I can open the homepage but when I click in the categories I get the massage (This tab has been recovered) and I will remain in the current page, and after several clicks I get this URL (res://ieframe.dll/acr_error.htm#) in the address bar and open page that says:

      Internet Explorer has closed this webpage to help protect your computer
              A malfunctioning or malicious add-on has caused Internet Explorer to close this webpage.

Why the site works fine in other browsers and only not compatible with internet explorer?
please post an URL


This is the URL:

It happened when I click at the left side categories and even worse when clicking on the pagination at the bottom of every category.

I added this line in the head
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" />
 and the site works now much better, maybe the problem is gone.

Im using IE8.
as said before: URL **have to be** URL encoded,
Most browsers are smart to websites ignoring standards and convert the wrong URL into correct URL encoded URLs.
If your browser does not do that, you have following choices:
  1. build a correctly encoded website
  2. use a browser which silently corrects web designer errors

I'd prefer 1.

Also keep in mind that most web application firewalls will reject URLs if not encoded properly.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial